Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & 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
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
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.