Welcome to WebmasterWorld Guest from 23.20.53.150

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

how to do this in .htaccess?

     
2:33 am on Feb 8, 2003 (gmt 0)

New User

10+ Year Member

joined:Jan 24, 2003
posts:40
votes: 0


i have 3 domains pointing to the same content.

i want two conditions i guess...that USER AGENT contains 'Googlebot', and that the domain is either domain2.com or domain3.com

and then it should give the bot one of those redirect things so it transfers pagerank over to the main domain, and won't ban me for having duplicate content. how to do this?

10:26 am on Feb 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0


I guess you are talking about returning a 301 Moved Permanently status code.

You might want to read An Introduction to Redirecting URLs on an Apache Server [webmasterworld.com] or have a look at the documentation for Apache`s RedirectPermanent [httpd.apache.org], Redirect [httpd.apache.org], RedirectMatch [httpd.apache.org] directives.

Andreas