Zen Cart如何正確的書寫Robots文件
重復(fù)頁面
在之前的文檔中海外主機(jī)小編已講到過,重復(fù)的內(nèi)容的頁面如果被搜索引擎收錄會有被懲罰的后果。允許搜索蜘蛛機(jī)器人在不采用會跟蹤其在網(wǎng)站上瀏覽路徑的會話 ID 或參數(shù)的情況下抓取您的網(wǎng)站。這些技術(shù)對跟蹤單個用戶的行為非常有用,但蜘蛛機(jī)器人的訪問模式卻完全不同?!北热鐉encart程序產(chǎn)生的 index.php?main_page=site_map與index.php?main_page=site_map& language=gb內(nèi)容完全一致,導(dǎo)致重復(fù)頁面的產(chǎn)生,顯然會降低整個網(wǎng)站在搜索引擎算法評估中得出的質(zhì)量。Zen Cart實現(xiàn)偽靜態(tài)后,動態(tài)依然存在,這樣很容易造成了搜索引擎抓取了很多重復(fù)頁面,接下來我們可以利用robots.txt文件來屏蔽蜘蛛抓取這些重復(fù)的頁面。Zen Cart如何正確的書寫Robots文件步驟如下:1、在php空間根目錄新建一個robots.txt2、在文件中輸入如下代碼:
User-agent: *Disallow: /cgi-bin/Disallow: /images/Disallow: /cache/Disallow: /docs/Disallow: /extras/Disallow: /tempEP/Disallow: /*?Disallow: /*?zenid*Disallow: /*alpha_filter_id*Disallow: /*?languageDisallow: /*cPathDisallow: /privacy.htmlDisallow: /gv_faq.htmlDisallow: /discount_coupon.htmlDisallow: /unsubscribe.htmlDisallow: /conditions.htmlDisallow: /popup_image_additional.htmlDisallow: /tell_a_friend.htmlDisallow: /product_reviews_write.htmlDisallow: /pages-popup_image.html?Disallow: /popup_image_additional.html?Disallow: /index.php?main_page=create_accountDisallow: /index.php?main_page=shippinginfoDisallow: /index.php?main_page=privacyDisallow: /index.php?main_page=conditionsDisallow: /index.php?main_page=unsubscribeDisallow: /index.php?main_page=loginDisallow: /index.php?main_page=product_reviews_writeDisallow: /index.php?main_page=featured_productsDisallow: /index.php?main_page=products_newDisallow: /index.php?main_page=popup_imageDisallow: /index.php?main_page=product_info&cPathDisallow: /index.php?main_page=product_info&products_idDisallow: /index.php?main_page=tell_a_friend3、保存文件之后,將robots.txt文件上傳至php主機(jī)網(wǎng)站根目錄即可。海外主機(jī)
Tags:重復(fù)頁面,Zen Cart如何正確的書寫Robots文件
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。