飞龙博客

妙法莲华经

zencart seo 之robots.txt文件写法

feilong.org 修订于2007-10-05 01:37:46

WordPress的robots.txt文件类似,这个robots文件是seo必须是关心的。它可以告诉搜索引擎哪些文件或文件夹允许访问或不允许访问,以及访问的方式等。

飞龙怕搜索引擎收录内容,出现重复url或补充的相似内容,因此安装zencart后,编写了这个robots.txt文件,本日志更新网址:http://feilong.org/zencart-robots-txt 飞龙第2次修订于20100822 希望对您有用!

这个zencart seo 之robots.txt文件,如下:

User-agent: *
Disallow: /cache/
Disallow: /contrib/
Disallow: /docs/
Disallow: /extras/
Disallow: /htmlarea/

Disallow: /stats/
Disallow: /sitemap/
Disallow: /graphics/
Disallow: /login.html
Disallow: /privacy.html

Disallow: /conditions.html
Disallow: /contact_us.html
Disallow: /gv_faq.html
Disallow: /discount_coupon.html
Disallow: /unsubscribe.html

Disallow: /shopping_cart.html
Disallow: /ask_a_question.html
Disallow: /popup_image_additional.html
Disallow: /product_reviews_write.html
Disallow: /tell_a_friend.html

Disallow: /pages-popup_image.html?
Disallow: /popup_image_additional.html?
Disallow: /login.html
Disallow: /index.php?main_page=shippinginfo
Disallow: /index.php?main_page=privacy

Disallow: /index.php?main_page=conditions
Disallow: /index.php?main_page=unsubscribe
Disallow: //index.php?main_page=login
Disallow: /index.php?main_page=product_reviews_write
Disallow: /index.php?main_page=featured_products

Disallow: /index.php?main_page=products_new
Disallow: /index.php?main_page=popup_image
Disallow: /index.php?main_page=product_info&cPath
Disallow: /index.php?main_page=product_info&products_id
Disallow: /index.php?main_page=tell_a_friend

Disallow: /*sort=
User-agent: Googlebot-Image
Disallow: /
User-agent: Baiduspider
Disallow: /

#rewritecond %{http_host} ^yourdomain.com [nc]
#rewriterule ^(.*)$ http://www.yourdomain.com/$1 [r=301,nc]
#includes/configure.php and admin/includes/configure.php 'yourdomain.com' to 'www.yourdomain.com'

飞龙提示:如果还有其它你不想搜索引擎访问的,可以补充进去。还有,includes/configure.php 和  admin/includes/configure.php里面的域名指向,避免出现www.和无www的重复,保持网址的唯一性。

更新网址:https://feilong.org/zencart-robots-txt
最初发布:20071005 01:37:46 feilong.org 于广州

加入收藏夹,查看更方便。

所在分类: 建站程序

新作:

旧文: