301 Redirection??????????

Discussion in 'Search Engine Optimization' started by bestseocompany, Mar 25, 2011.

  1. #1
    HI,

    how can i do 301 redirect for HTML pages suppose i have pages: /dir.com and i want to redirect /vir.com, so how can i do????????
     
    bestseocompany, Mar 25, 2011 IP
  2. sherone

    sherone Well-Known Member

    Messages:
    1,539
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Open notepad and save it as .htaccess in yer root directory.

    Put the redirect code in a notepad and save it in your root directory, as .htaccess (name it .htaccess)


    (close the spaces in the url, I made the spaces on purpose to make the post and they are of no use to you)

    Good Luck
     
    sherone, Mar 25, 2011 IP
  3. Trioman

    Trioman Active Member

    Messages:
    320
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Depending on your hosting provider, you should be able to go to your CPanel and redirect your website from there.
     
    Trioman, Mar 25, 2011 IP
  4. iamolm

    iamolm Peon

    Messages:
    104
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, 301 is the best way to tell Search Engine bot that which file is moving or removing. you can use that code which shared by sherone

    Cheers,
    :cool:
     
    iamolm, Mar 25, 2011 IP
  5. metaseo

    metaseo Peon

    Messages:
    159
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    A 301 redirect is the best way of telling a search engine that this domain has been permanently moved to the new domain name. This also reduces your chances of having duplicate content.

    I suggest using the "www" version "non-www".

    Here is how to transfer your "non-www" version to the "www" version of your website:

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^mysite\.com [NC]

    RewriteRule (.*) http://www.mysite.com/$1 [L,R=301]

    Create a .htaccess file containing the above code, and place that file in your website's root folder.

    I hope I helped you out. If you have more questions, don't be shy to ask.
     
    metaseo, Mar 25, 2011 IP