Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2011
    Posts
    66

    [Help] Htaccess Code

    Hello
    guys can anyone help me with the code

    i want to redirect the google bot to other domain and all pages i.e 301 redirect

    currently therir is a code
    Code:
    #Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^(.*)$ http://www.ENTER-YOUR-NEW-DOMAIN-HERE.COM/$1 [R=301,L]
    But want to transfer only google bot
    Can anyone helps me please.
    Thanks

  2. #2
    Join Date
    Oct 2009
    Location
    Netherlands, the
    Posts
    46
    Something like this?

    #Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} exmaple.com$ [NC]
    RewriteCond %{HTTP_USER_AGENT} Googlebot
    RewriteRule ^(.*)$ http://www.exmaple.com/$1 [L,R=301]
    WebMeso.com | High Quality | Internet Service Provider
    Dedicated servers, Webhosting, Colocation, VPS, domain name registration
    High-end | Virtual Private Servers | KVM virtualisation technique
    Amsterdam, the Netherlands (AMS) (NL) (EU)

Similar Threads

  1. can someone convert apache htaccess code to nginx code
    By rajin90 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 03-11-2013, 03:18 AM
  2. .htaccess code in php4
    By jibinthomas007 in forum Web Hosting
    Replies: 3
    Last Post: 03-23-2012, 01:23 PM
  3. need a little help with htaccess redirect code
    By ransome in forum Hosting Security and Technology
    Replies: 2
    Last Post: 08-21-2011, 08:03 AM
  4. What do you think this htaccess code does?
    By lexington in forum Programming Discussion
    Replies: 3
    Last Post: 04-19-2008, 12:47 PM
  5. Need help with .htaccess hotlink code!
    By sir_han in forum Programming Discussion
    Replies: 0
    Last Post: 06-28-2007, 06:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •