2013-07-22 30 views
0

您好,如果我沒看錯的robots.txt文件將是本作Opencart的如何通過robots.txt文件deindex在Opencart的特定類別

User-agent: * 
Disallow: /*&limit 
Disallow: /*&sort 
Disallow: /*?route=checkout/ 
Disallow: /*?route=account/ 
Disallow: /*?route=product/search 
Disallow: /*?route=affiliate/ 
Allow:/

我想從我的網站deindex類別等什麼我在robots.txt文件中使用的代碼從Google中刪除該類別。謝謝。

回答

0

打開/catalog/controller/product/category.php

找到這一行

if ($category_info) { 

在新行其添加這個

if ($category_info['category_id'] == 123) { 
    header("X-Robots-Tag: noindex", true); 
} 

改變123到要停止索引

的一個類別ID後
相關問題