sitemap

4.SEO优化--Sitemap站点地图

谁都会走 提交于 2020-03-04 20:32:17
Sitemap站点地图,即网站上各网页的列表: 1)有助于百度发现并了解网站上所有网页; 2)可以使用Sitemap提供网站的相关信息,如更新日期、更新频率等; Sitemap的格式: 1)txt文本格式: 在txt文本中列出需要向百度提交的链接地址,提交的地址需注意: ①文本文件中每行必须有一个网址,网址中不能有换行和其他符号以及中文; ②网址必须完整,http开头; ③每个文本中最多包含50000个网址,且小于10MB,如果多于50000个,可以将 列表分割成多个文本文件; ④文本文件需使用UTF-8或GBK编码; 2)xml格式: 单个xml数据格式: <?xml version="1.0" encoding="utf-8"?> <!-- XML 文件需以 utf-8 编码--> <urlset> <!--必填标签--> <url> <!--必填标签,这是具体某一个链接的定义入口,每一条数据都要用<url>和</url>包含在里面,这是必须的 --> <loc>http://www.yoursite.com/yoursite.html</loc> <!--必填,URL 链接地址,长度不得超过 256 字节--> <lastmod>2009-12-14</lastmod> <!--可以不提交该标签,用来指定该链接的最后更新时间--> <changefreq>daily<

Hexo博客搭建中的插件记录

佐手、 提交于 2020-02-14 21:38:44
maupassant 主题依赖插件 hexo-renderer-jade : 支持Jade/Pug渲染 hexo-renderer-sass : 支持Sass渲染 hexo-generator-search : 实现本地搜索 search : path : search.xml field : post content : true hexo-deployer-git : Git部署插件 hexo-generator-feed : 生成订阅文件 # Extensions plugins : hexo - generator - feed #Feed Atom feed : type : atom path : atom.xml limit : 20 hexo-generator-sitemap : 生成网站sitemap sitemap : path : sitemap.xml 来源: CSDN 作者: Jin_zc 链接: https://blog.csdn.net/charjindev/article/details/104312178

ServiceStack_AutoQuery

不想你离开。 提交于 2020-02-07 08:51:43
AutoQuery的作用 ServiceStack中的AutoQuery支持增加了类似于OData对Web Api的查询支持的自动查询功能。 AutoQuery在.Net Core中的配置 public class AppHost : AppHostBase { //assembly 程序集的名称 public AppHost() : base("TechStacks!", typeof(TechnologyServices).Assembly) { } //日志接口 private static ILog log; // Configure your AppHost with the necessary configuration and dependencies your App needs //使用应用程序需要的必要配置和依赖项来配置AppHost public override void Configure(Container container) { // LogManager.LogFactory = new ConsoleLogFactory(debugEnabled:true); log = LogManager.GetLogger(typeof(AppHost)); GetPlugin<NativeTypesFeature>()

Sitemap reference in robots.txt for each TLD

十年热恋 提交于 2020-02-05 22:16:07
问题 We are using the robots.txt to reference our sitemap index file. Now we will release new, different countries. Our webseite under the TLD .de provides a robots.txt, containing a reference to our index file. The index files refers to different sitemaps containing our .de link in loc XML node. Other locales (eg. for .fr ) are listed with xhtml:link below. Example: <url> <loc>https://xy.de/hallo</loc> <xhtml:link>https://xy.fr/hello</xhtml:link> </url> The question is now, should we add a robots

how to redirect 404 (bad urls) to the homepage

懵懂的女人 提交于 2020-02-02 04:20:21
问题 I am using asp.net and when I type a bad url manually(in the browser) it gives me: The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. I want a bad url that doesn't exist to be re-directed to the home page. How do I do this? I am using sitemap. 回答1: If you have no intentions of

Liftweb Menu customization

好久不见. 提交于 2020-01-30 23:27:10
问题 I want to create a menu that looks like: HOME | FOO | BAR | ABOUT | CONTACT How might I go about doing this? Here is what I have tried: <lift:Menu.builder ul:class="menu" li_item:class="current" /> and ul.menu li { display: inline; list-style-type: none; text-transform: uppercase; border-right: 1px solid white; padding-right: 5px; } li.current span { background: white; color: black; padding: 5px 5px 3px 5px; font-size: 11px; } li.current a, a:visited, a:link { color: white; padding: 5px 5px

如何制作sitemaps网站地图

寵の児 提交于 2020-01-29 13:45:39
如何制作sitemaps网站地图 1.0 前言 1.1 xml格式 1.2 常见问题 本文资料来源于 网站 1.0 前言 Sitemap 可方便网站管理员通知搜索引擎他们网站上有哪些可供抓取的网页。最简单的 Sitemap 形式,就是XML 文件,在其中列出网站中的网址以及关于每个网址的其他元数据(上次更新的时间、更改的频率以及相对于网站上其他网址的重要程度为何等),以便搜索引擎可以更加智能地抓取网站。(来源 百度百科 ) 通常,sitemaps(中文:站点地图)没有人看,一般都是收录爬虫(例:百度蜘蛛)看,用于更好的收录网站 1.1 xml格式 标准: <!--来源:https://www.sitemaps.org/protocol.html--> <?xml version="1.0" encoding="UTF-8"?> < urlset xmlns = " http://www.sitemaps.org/schemas/sitemap/0.9 " > < url > < loc > http://www.example.com/ </ loc > < lastmod > 2005-01-01 </ lastmod > < changefreq > monthly </ changefreq > < priority > 0.8 </ priority > </ url >

小程序的相关配置

时间秒杀一切 提交于 2020-01-27 02:15:19
目录 1、project 和 sitemap 配置 2、全局配置 app 3、局部配置 page 小程序的很多开发需求被规定在了配置文件中,这样做可以更有利于提高的开发效率,并且可以保证开发出来的小程序的某些风格是比较一致的,比如导航栏、顶部TabBar,以及页面路由等等。 小程序中有很多配置,其大致可以分为三类:(1)project 和 sitemap 配置(2)全局配置 app(3)局部配置 page。下面具体对这几种配置进行说明,这是小程序官方文档关于相关配置的链接: 配置小程序 1、project 和 sitemap 配置 (1)project.config.json :项目配置文件,比如项目名称、appid 等; 这个配置文件记录了小程序的一些关于项目的相关配置(在小程序开发工具的详情按钮中可以对一些配置进行修改),其实早期的小程序项目是没有这个配置文件的,但是如果没有这个配置文件就会出现 多端配置不一致的问题 。比如当你和同事协同开发一款小程序的时候,他用的是 2.7.0 版本开发的,而你默认的是 2.7.1 版本,这种情况就需要其中一个人进行手动配置,这样会造成不必要的麻烦,因此微信考虑到了这种情况,保证一个项目中只有一种配置,这就是 project.config.json 的作用。 (2)sitemap.json :小程序搜索相关的配置;

How to create sitemap for static and dynamic pages

那年仲夏 提交于 2020-01-24 22:18:04
问题 I have created website using the CI framework 3.0 and still i am stuck in creating the xml sitemap for static and dynamic pages. 回答1: Your question is very clear. i'm using codeigniter with the sitemap php Library. Its awesome and has clear directions: https://github.com/evert/sitemap-php To get you started - Put the SitemapPHP folder in application/libraries Then, in your controller, in your method you call the library like: public function makeSitemap() { // APPPATH will automatically

Generate dynamic sitemap with js?

白昼怎懂夜的黑 提交于 2020-01-24 20:16:24
问题 I have a small site, it has a bit of dynamic tabbed content which is loaded from a JSON file via an AJAX request and used to populate the DOM, the tabs themselves and content they contain are all generated on the fly from this JSON. This is all tied together with History.js so each tab is bookmarkable and indexable via a url: ?state=whatever. I'm now looking to put together a sitemap.xml to submit to Google which contains all the URLs for the relevant tabs. However, There is no server-side