PDA

View Full Version : Htaccsess Redirect


fedor
12-25-2006, 06:13 PM
Can somebody give me the code you put in HTACCSESS that if your useragent is a google bot you get redirected to a certain page

indy2kro
12-26-2006, 12:39 AM
RewriteCond %{HTTP_USER_AGENT} google
RewriteRule ^/$ /google_page.html [L]

RewriteRule ^/$ /normal_page.html [L]

Something like that .. the only problem would be that if you use this, you violate Google's TOS and risk to get your website banned (even worse if you use Adsense). So .. I'd say just skip this idea.

fedor
12-26-2006, 05:18 PM
How can you get banned for that?:eek:
What I just said is like robots.txt:mad:

indy2kro
12-27-2006, 03:51 AM
I'm not sure if this is in Google TOS or Adsense TOS, but in one of them is specified that your pages should look the same for a regular visitor and a robot (so that you don't have a site that breaks the rules and when it crawls your website it appears like a regular one).

fedor
12-27-2006, 06:17 PM
Where can I veiw the TOS?