Welcome to WebmasterWorld Guest from 54.147.20.131

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

how to do this in .htaccess?

     

SubZeroGTS

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

10+ Year Member



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?

andreasfriedrich

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

WebmasterWorld Senior Member 10+ Year Member



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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month