首页 > 其他 > 详细

sitemap模板、robots.txt

时间:2018-12-06 18:31:29      阅读:204      评论:0      收藏:0      [点我收藏+]

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

sitemap模板、robots.txt

原文:https://www.cnblogs.com/lst-315/p/10078184.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!