【发布时间】:2011-11-06 22:01:57
【问题描述】:
在robots.txt 文件中,是否可以使用相对路径而不是绝对路径来指出站点地图?
Sitemap: http://www.example.com/sitemap.xml
改为:
Sitemap: sitemap.xml
Curiose note SO robots.txt
#
# this technically isn't valid, since for some godforsaken reason
# sitemap paths must be ABSOLUTE and not relative.
#
Sitemap: /sitemap.xml
【问题讨论】:
标签: html seo robots.txt