WWW vs. non-www

Discussion in 'Site & Server Administration' started by MikeSwede, Dec 31, 2006.

  1. #1
    In my sitemap account you can elect if you want to use www or the non-www.
    A wile back, like a couple of weeks ago, I told them that I wanted all to use the www and what do they do??? Today I see a LOT of non-www links in the search and rankings dropped, pages gone supplemental:mad:

    WTH?????
     
    MikeSwede, Dec 31, 2006 IP
  2. stOx

    stOx Notable Member

    Messages:
    6,426
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    230
    #2
    use a 301 redirect to send visitors and bots to either the www or non-www version of your site.
     
    stOx, Dec 31, 2006 IP
  3. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's simply Google, always doing exactly the opposite to your expectations, but follow sTOx advice ;)
     
    Pat Gael, Dec 31, 2006 IP
  4. tkilgore

    tkilgore Well-Known Member

    Messages:
    1,075
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    160
    #4
    the 301 as suggested..works great ..I have done a complete (html and all) change before with google using a nice --> /old path --> /New path ..layout.. that google seems to respect and not bounce ya around.

    :0) good luck
     
    tkilgore, Dec 31, 2006 IP
  5. MikeSwede

    MikeSwede Peon

    Messages:
    601
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You would think that setting your preferred domain, as they call it, would be the right thing to do and they would "obey" their own rules.

    GEESH:eek:
    Anybody have the right code for the .htaccess
     
    MikeSwede, Dec 31, 2006 IP
  6. Komodo Tale

    Komodo Tale Peon

    Messages:
    140
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    There are a few versions out there. This is what I use:

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /

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

    ---------------------------

    I have also seen

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /

    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC]
    RewriteRule ^.*$ http://www.yourdomain.com [R,L]

    ----------------------------

    Obviously the first uses the HTTP_HOST while the second uses the HTTP_REFERER. I suggest that you test different code to see what works best with your server settings.
     
    Komodo Tale, Dec 31, 2006 IP
  7. robdp

    robdp Guest

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Without it is the correct way; I'd redirect the "www." to the non-"www" version.

    http://no-www.org/
     
    robdp, Dec 31, 2006 IP
  8. delsia

    delsia Well-Known Member

    Messages:
    670
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    #8
    Ouch www. Matters in ranking? because every seo promoting I did myself I did not include www.
    O_O
     
    delsia, Dec 31, 2006 IP
  9. sligowaths

    sligowaths Peon

    Messages:
    172
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    delsia,

    The problem is when you allow the both: the www and the non-www version. This tend to generate a lot of duplicate content...
     
    sligowaths, Dec 31, 2006 IP
    delsia likes this.
  10. delsia

    delsia Well-Known Member

    Messages:
    670
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    #10
    Oh thanks for telling me that. i only work with only non www. :)
     
    delsia, Dec 31, 2006 IP
  11. Komodo Tale

    Komodo Tale Peon

    Messages:
    140
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I once thought the same way back in the early days of the Web. Yes, the www is redundant, however, it is generally accepted and usually expected. It is also much more straight-forward to include the www than to exclude it.


    --
     
    Komodo Tale, Dec 31, 2006 IP