www vs. no www - do you need to be consistent?

Discussion in 'Search Engine Optimization' started by create11, Feb 20, 2008.

  1. #1
    my site is working with a www in front of it. some of the people linking to me are linking as a non www url. does this help/hurt with seo efforts?
     
    create11, Feb 20, 2008 IP
  2. kenbrower

    kenbrower Well-Known Member

    Messages:
    574
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Short answer, YES. Set up your site so that one of them redirects to the other.
     
    kenbrower, Feb 20, 2008 IP
  3. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Consider this, www.domain.com/index.html & domain.com/index.html are considered 2 seperate web pages, so Pagerank and SERP weight can in effect be "divided" between them. You want to redirect one to the other to make all "possible" inbound links to your domain absolute and the same.
     
    astup1didiot, Feb 20, 2008 IP
  4. create11

    create11 Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just to reiterate and make clear...

    If I redirect domain.com to www.domain.com then all incoming links going to domain.com will still benefit SEO efforts?
     
    create11, Feb 20, 2008 IP
  5. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Yes, because the entire url will be redirected with the correct www if not already included, insert the below into your .htaccess file in your top level directory.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

    Of course replace yourdomain.com with your correct domain name and extension, keep the forward slash in the 2nd line. The RewriteEngine on is not required twice in the file if it already exists.
     
    astup1didiot, Feb 20, 2008 IP
  6. casperel

    casperel Banned

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I recommend to use what ssandecki told you because it`s good for search engines. Google can index www ori no www as duplicate.
     
    casperel, Feb 20, 2008 IP
  7. ruthlessagent

    ruthlessagent Peon

    Messages:
    59
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hey, thanks for the info. Would you put this code in the body or the head? Also, do you have to add this to every page or just the homepage?
     
    ruthlessagent, Feb 20, 2008 IP
  8. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #8
    Seems like you don't know what a .htaccess file is, google it.
     
    Kaizoku, Feb 20, 2008 IP
  9. mberman84

    mberman84 Peon

    Messages:
    511
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    go to the server admin section of this forum.

    it is very important to be consistent, because otherwise you will have multiple versions of the same pages which will dilute your pagerank.
     
    mberman84, Feb 20, 2008 IP
  10. theseomonk

    theseomonk Peon

    Messages:
    409
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The search engines do not care whether you use www or no www in URLs on your site. There is nothing in their ranking algorithms that causes them to rank a www version of a URL higher than a non-www version of the same URL. So the www and non-www are treated exactly the same by the search engines from a ranking perspective.

    Whether you use www or no www to link to pages on your site is totally up to you. It is based on your preference. You can base your decision to use one or the other on what looks best on a business card, what rolls off the tongue better, or which version you think consumers will most likely remember. It really doesn’t matter which you pick or why.
     
    theseomonk, Apr 12, 2010 IP
  11. Jeff Collision

    Jeff Collision Peon

    Messages:
    1,020
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    These are said to be Canonical Url. In this case the link juice can be split. To avoid this issue, we need to redirect the website either with www version or non www version permanently. For this 301 redirection can be used. 301 redirection can always be search engine friendly.
     
    Jeff Collision, Apr 12, 2010 IP