Welcome to WebmasterWorld Guest from 188.8.131.52
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?
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.