2011-03-15 17 views
2

我需要一些幫助。我不確定關於請求mod_rewrite和robots.txt的順序。在htaccess中稱爲first - robots.txt或mod_rewrite

某些URL屬於重寫規則:

/index.php?id=123 to /home 

其他網址沒有重寫:

/index.php?id=444 

我做了這個條目我的robots.txt:

User-agent: * 
Disallow: /index.php?id 

/首頁的網站將由搜索引擎索引?

回答

3

robots.txt文件被客戶端(蜘蛛)解釋,他們不知道你在系統中重寫了什麼。因此,如果蜘蛛看起來像robots.txt中的模式,但如果它們通過/home找到相同的內容,則它們將無法從您的網站獲取URL。