六六互联

仿牌空间主机服务器|仿牌VPS|抗投诉VPS|荷兰VPS|马来西亚VPS|卢森堡VPS|立陶宛VPS|俄罗斯VPS

« 外贸建站需要什么样的空间呢?如何重装magento系统 »

该怎么写magento的robots.txt文件

    如果是懂SEO的人都知道robots.txt文件的重要性。但是如果什么不知道robots.txt的重要性,正确建立robots.txt 文件的内容可有效的优化magento网站,防止垃圾链接网址被搜索引擎纳入索引,降低网站的权重。

 
     该怎么去建一个robots.txt呢?
 
# Website Sitemap
Sitemap: http://www.mydomain.com/sitemap.xml
 
# Crawlers Setup
User-agent: *
Crawl-delay: 10
 
# Allowable Index
Allow: /*?p=
Allow: /catalog/seo_sitemap/category/
Allow:/catalogsearch/result/
 
# Directories
Disallow: /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/
 
# Files
Disallow: /cron.php
Disallow: /cron.sh
Disallow: /error_log
Disallow: /install.php
Disallow: /LICENSE.html
Disallow: /LICENSE.txt
Disallow: /LICENSE_AFL.txt
Disallow: /STATUS.txt
 
# Paths (no clean URLs)
Disallow: /*.js$
Disallow: /*.css$
Disallow: /*.php$
Disallow: /*?p=*&
Disallow: /*?SID=
  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

本站虚拟主机由六六互联提供:仿牌主机-(www.66host.cn)

Copyright 2012-2013 www.qdwl8.com. Some Rights Reserved.