Zen cart robots.txt的写法
二月 4, 2010 by Box · Leave a Comment
Zen cart网店程序在安装好之后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
User-agent: Googlebot-Image
Disallow: /
如果您希望您的照片在谷歌图片搜索中出现请删除最后两行。
zen cart开源网店-伪静态的处理步骤
二月 2, 2010 by Box · 2 Comments
zen cart是目前比较主流的网店程序。强大的功能和对搜索引擎友好让越来越的人选择他来建网站。最近Box一直在忙乎zen cart,没多少时间来更新博客。一个星期前,对zen cart程序是一点不懂,从改模版到网站的上线一点一点摸索出来的。要感谢这段时间给我提供帮助的朋友和网友。
本文主要给大家说说从伪静态怎么做的,因为像改模版什么的网上都有大篇幅的文章,再说会DIV+CSS那个也不难。伪静态处理网上说的底不清楚。研究了一天不如请教人一分钟搞定。
首先,要服务器支持伪静态。空间不要是Windows的,要Linux空间
其次,就要自己网站后台设置了。步骤是:中文版:商店设置-搜索引擎优化-打开搜索引擎优化吗?选择true。英文版回补……
最后,服务器搞定后打开FTP,根目录里的htaccess_sample改为.htaccess,用记事本打开.htaccess第三行有一处是 “RewriteBase /shop/” 这样的语句改成“RewriteBase /” 或者“RewriteBase /zen-cart/”,主要看放在哪里。然后即可回传FTP。
上面3步搞定好,刷新下主页就可以看到伪静态效果了。后面会继续分享我的zen cart心得。欢迎加QQ:763280260交流,转帖请说明出处:www.seowan.com