sitemap模板、robots.txt

1.sitemap.xml脚本样式

<?xml version="1.0"encoding="UTF-8" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/">
 <url>
 <loc>页面URL</loc>
 <mobile:mobile type="pc,mobile"/>
 <lastmod>2009-12-14 11:23:24</lastmod>
 </url>
 <url>
 <loc>页面URL</loc>
 <mobile:mobile type="pc,mobile"/>
 <lastmod>2009-12-14 12:00:00</lastmod>
 </url>
  ....
</urlset>

2.要求

3.robots.txt

User-agent: *
Disallow:禁止访问的页面 可用通配符号
Sitemap: http://xxx/sitemap.xml

posted @ 2018-12-06 17:52  菠萝tang的学习日记  阅读(221)  评论(0编辑  收藏  举报