Zen Cart 是一款高速、稳定、功能强劲的免费开源网店系统,是基于PHP语言开发的开源电子商务解决方案,用于建立专业的网上商店,支持多语言、多货币、多插件、搜索引擎优化、批量更新,是最安全的网店系统之一,特别适合外贸网站建设。
我们知道 ZenCart 网站在实现伪静态后,其动态链接依然可以访问,这样就可能造成搜索引擎抓取了很多重复页面,下面我们可以利用 robots.txt 文件来屏蔽搜索引擎蜘蛛抓取这些重复的页面,具体操作如下:
1.新建一个robots.txt文件。
2.在robots.txt文件中输入如下代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | User-agent: * Disallow: /cgi-bin/ Disallow: /images/ Disallow: /cache/ Disallow: /docs/ Disallow: /extras/ Disallow: /tempEP/ Disallow: /*? Disallow: /*?zenid* Disallow: /*alpha_filter_id* Disallow: /*?language Disallow: /*cPath Disallow: /privacy.html Disallow: /gv_faq.html Disallow: /discount_coupon.html Disallow: /unsubscribe.html Disallow: /conditions.html Disallow: /popup_image_additional.html Disallow: /tell_a_friend.html Disallow: /product_reviews_write.html Disallow: /pages-popup_image.html? Disallow: /popup_image_additional.html? Disallow: /index.php?main_page=create_account 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 |
3.保存文件之后,将robots.txt文件上传到 Zen Cart 网站根目录即可。