301 Redirect

Discussion in 'Google' started by seo.raj, Jul 14, 2010.

  1. #1
    I want use 301 redirect code for my web site. Can any body help me.How, I use .htaccess file for 301 redirect.
     
    seo.raj, Jul 14, 2010 IP
  2. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
  3. WishBone

    WishBone Peon

    Messages:
    2,566
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
  4. haveseo

    haveseo Well-Known Member

    Messages:
    995
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #4
    If you are using Cpanel, its very easy. Go to Redirects and add your link over there.
    in this case its not needed that you manually change .htaccess.
     
    haveseo, Jul 15, 2010 IP
  5. seo.raj

    seo.raj Active Member

    Messages:
    273
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #5
    I am using cute FTP 8 professional. I've try all code for 301 redirect. But, I'm not success. So, Please give me any code which is any body use for his web site.
     
    seo.raj, Jul 16, 2010 IP
  6. inspiroHost

    inspiroHost Peon

    Messages:
    989
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    What sites do you want to redirect? Let us know and we'll give you the exact code.
     
    inspiroHost, Jul 16, 2010 IP
  7. seo.raj

    seo.raj Active Member

    Messages:
    273
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #7
    seo.raj, Jul 16, 2010 IP
  8. Alan Smith

    Alan Smith Active Member

    Messages:
    1,263
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #8
    Generally .htaccess redirect is used on linux servers having apache. This code may help you for redirection:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

    Replace www.newdomain.com with the domain name you want to use.

    The .htaccess file needs to be placed in the root directory of your old website.
     
    Alan Smith, Sep 27, 2010 IP
  9. goodbells10@gmail.com

    goodbells10@gmail.com Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Open your notepad and place given below code for 301 redirection. Change your domain name and save file as .htaccess.

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
     
    goodbells10@gmail.com, Sep 27, 2010 IP