www. redirection

Discussion in 'Google' started by drcsystems, Apr 17, 2009.

  1. #1
    Hello Everyone,

    some links of my website show in google with www. and some are without www.

    I need to redirect all the links on www.

    Can anyone tell me what is the process to do this?

    Thanks in advance for the answer.
     
    drcsystems, Apr 17, 2009 IP
  2. 4chp

    4chp Peon

    Messages:
    163
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'd tell you but then I may get hammered by somebody saying it'll destroy your rankings ;)
     
    4chp, Apr 17, 2009 IP
  3. drcsystems

    drcsystems Peon

    Messages:
    123
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    not an issue, that is my problem pls tell me the process
     
    drcsystems, Apr 17, 2009 IP
  4. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #4
    you can handle this through Google webmaster tools
     
    Vebtools, Apr 17, 2009 IP
  5. BlackMelvyn

    BlackMelvyn Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In your .htaccess file type in
    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.example.com$
    RewriteRule ^(.*)   http://www.example.com/$1  [R=301,L]
    Code (markup):
    That will permanently redirect visitors AND spiders to the www subdomain ;)
     
    BlackMelvyn, Apr 17, 2009 IP
  6. dimitrov0074

    dimitrov0074 Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Open up notepad, copy that.

    Hit file-->save as and save it as .htaccess, nothin else.

    Upload it to the main directory wth ftp.
     
    dimitrov0074, Apr 17, 2009 IP
  7. alltheweb1985

    alltheweb1985 Peon

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Login to your google webmaster tools account -> Settings -> Preferred Domain -> Display URLs as www. example .com This should do the trick.

    Btw. this shouldn't affect the SERP, at least based on my experience it doesn't
     
    alltheweb1985, Apr 17, 2009 IP
  8. 4chp

    4chp Peon

    Messages:
    163
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It will effect him/her if the site is already established, and may even more if it were an e-commerce site. There are quite an few other important variables to take into effect, however if the OP isn't that concerned then so be it :)
     
    4chp, Apr 17, 2009 IP
  9. snowbird

    snowbird Notable Member

    Messages:
    3,036
    Likes Received:
    395
    Best Answers:
    0
    Trophy Points:
    290
    #9
    Just make sure to change example.com to your own domain. :)
     
    snowbird, Apr 17, 2009 IP
    pipes likes this.
  10. devzealot

    devzealot Greenhorn

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #10
    yes this is the best way to do it ;)
     
    devzealot, Apr 17, 2009 IP
  11. Komicwords

    Komicwords Well-Known Member

    Messages:
    1,016
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    #11
    for me I use my gocode wordpress redirections plugin and so far it help me move my www to non www site and so far the rank and traffic is OK
     
    Komicwords, Apr 17, 2009 IP