Forum Moderators: goodroi

Message Too Old, No Replies

Need to redirect bots from subdomain to main site

         

nemo1208

3:28 pm on Jul 7, 2006 (gmt 0)

10+ Year Member



I have a subdomain (xyz.domain.com) which bots are indexing. The main site (www.domain.com) has same contents. Is there a way to put a directive in the robots.txt file of xyz.domain.com so that all bots are directed to www.domain.com?
I dont want to exclude bots from visiting xyz.domain.com, I just want to redirect them to the main site. If this is not possible with robots.txt, I am curious if this would possible with .htaccess or mod_rewrite .
Thanks.