1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Different Home Page for Google Bot than For Normal Users

Discussion in 'Cloaking and Content Generators' started by moonlighsunligh, May 20, 2010.

  1. moonlighsunligh

    moonlighsunligh Jr. VIP Jr. VIP Premium Member

    Joined:
    May 1, 2010
    Messages:
    1,623
    Likes Received:
    218
    Lets say i have domain http://example.com. In case google bot access my site i would like to serve example.com/main.html as home page. In all other cases home page should be as normal (accessed through http://example.com - default root pahe is index.php)

    So far i come up with this:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_USER_AGENT} .*Googlebot.*$ [OR]
    RewriteCond %{HTTP_USER_AGENT} googlebot^$ 
    RewriteRule ^index.php http://example.com/main.html [R=301,L]
    
    Is that good?
     
  2. moonlighsunligh

    moonlighsunligh Jr. VIP Jr. VIP Premium Member

    Joined:
    May 1, 2010
    Messages:
    1,623
    Likes Received:
    218
    Is that good?
     
  3. nuntium

    nuntium BANNED BANNED

    Joined:
    Aug 27, 2009
    Messages:
    73
    Likes Received:
    25
    Check out plugin 'default user agent' plugin for firefox. You can set your user agent as googlebot and test it yourself.
    Posted via Mobile Device
     
  4. C.S.A.

    C.S.A. Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    150
    Likes Received:
    242
    Don't do this. It may seem like a short-term gain, but google pretty rapidly discovers this kind of trick and it's a great way to get your site banned. Doing shit like this shows google that without a doubt you intend to be blackhat.