共计 1130 个字符,预计需要花费 3 分钟才能阅读完成。
下面是典型的一个magento站点的robots.txt具体设置, 有需要的同学可以根据实际情况做适当的调整…
# Website SitemapSitemap: http://www.mydomain.com/sitemap.xml# Crawlers SetupUser-agent: *Crawl-delay: 10# Allowable IndexAllow: /*?p=Allow: /index.php/blog/Allow: /catalog/seo_sitemap/category/Allow:/catalogsearch/result/# DirectoriesDisallow: /404/Disallow: /app/Disallow: /cgi-bin/Disallow: /downloader/Disallow: /includes/Disallow: /js/Disallow: /lib/Disallow: /magento/Disallow: /media/Disallow: /pkginfo/Disallow: /report/Disallow: /skin/Disallow: /stats/Disallow: /var/# Paths (clean URLs)Disallow: /index.php/Disallow: /catalog/product_compare/Disallow: /catalog/category/view/Disallow: /catalog/product/view/Disallow: /catalogsearch/Disallow: /checkout/Disallow: /control/Disallow: /contacts/Disallow: /customer/Disallow: /customize/Disallow: /newsletter/Disallow: /poll/Disallow: /review/Disallow: /sendfriend/Disallow: /tag/Disallow: /wishlist/# FilesDisallow: /cron.phpDisallow: /cron.shDisallow: /error_logDisallow: /install.phpDisallow: /LICENSE.htmlDisallow: /LICENSE.txtDisallow: /LICENSE_AFL.txtDisallow: /STATUS.txt# Paths (no clean URLs)Disallow: /*.js$Disallow: /*.css$Disallow: /*.php$Disallow: /*?p=*&Disallow: /*?SID=
正文完


为什么要Disallow: /tag/ 求解释?
个人理解,里面不是每个语句都是必须。
Disallow: /tag/ 看个人所需。