homepage Welcome to WebmasterWorld Guest from 54.167.182.201
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
how to do this in .htaccess?
SubZeroGTS

10+ Year Member



 
Msg#: 108 posted 2:33 am on Feb 8, 2003 (gmt 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?

 

andreasfriedrich

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 108 posted 10:26 am on Feb 10, 2003 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved