Forum Moderators: phranque

Message Too Old, No Replies

to redirect or remove? robots.txt on IP version of site

robots.txt, IP, mod_rewrite,

         

martinmartin

3:02 pm on Jun 30, 2010 (gmt 0)

10+ Year Member



We have redirected IP requests to www using mod_rewrite in httpd conf Apache. In Webmaster Tools we see the IP/robots.txt there. Question is; should we remove the robots.txt? Should we 404 it? What to do? It is a duplicate of the robots.txt on our www.

Thanks,

DM

g1smd

6:42 pm on Jun 30, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you are redirecting IP requests to www for all URLs, I would add an exclusion to the redirect so that requests for robots.txt are not redirected, and add a rewrite so that the IP requests for robots.txt are served a different robots.txt file. This extra robots.txt file would block nothing so that all redirects are seen.

martinmartin

2:14 pm on Jul 1, 2010 (gmt 0)

10+ Year Member



Thank you!