1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is it bad to use both www. and non-www

Discussion in 'Search Engine Optimization' started by Matt Jo, Jun 3, 2011.

  1. #1
    Is it bad for SEO if your site loads under both www and non www?

    If so, should I put this code into my .htaacess, will it solve my problem?

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
     
    Matt Jo, Jun 3, 2011 IP
  2. CLDPFY

    CLDPFY Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It is better to only ever have content accessible from a single URL. So yes, redirecting from www.domain.com to domain.com or vice versa is highly recommended.
     
    CLDPFY, Jun 3, 2011 IP
  3. Matt Jo

    Matt Jo Member

    Messages:
    155
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    ok, and is that code correct? Like I don't want to mess up my .htaacess or anything by putting it in. This first line of my .htaacess is # -FrontPage-, do I put the code before or after that
     
    Matt Jo, Jun 3, 2011 IP
  4. chrismanaon

    chrismanaon Guest

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    chrismanaon, Jun 3, 2011 IP
  5. ayushi infotech

    ayushi infotech Peon

    Messages:
    1,814
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes it is bad with www and without www your domain because the links will divided into two urls..
     
    ayushi infotech, Jun 4, 2011 IP
  6. jim60723

    jim60723 Member

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    using rel canonical can be used in this case.
     
    jim60723, Jun 4, 2011 IP
  7. C.Rebecca

    C.Rebecca Active Member

    Messages:
    1,401
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    65
    #7
    Yes, it will influence your backlinks...
    Some websites will link to www version of your domain and others may link to non-www version. This will result in backlink splitting.
    You must set your preferred domain in Google webmaster tools and redirect one domain to your main domain.
     
    C.Rebecca, Jun 7, 2011 IP
  8. Vicky from DNP

    Vicky from DNP Peon Affiliate Manager

    Messages:
    209
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I will affect your site. I would recommend to use the domain.com instead of the www.domain.com.
    We have some experience with non www sites loading faster.
     
    Vicky from DNP, Jun 7, 2011 IP
  9. aaronnagal

    aaronnagal Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Here is the code to redirect non www version to www version of the website pages

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

    Unless you do this it will create content duplication issue.
     
    aaronnagal, Jun 7, 2011 IP
  10. yangbingqing

    yangbingqing Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    yeah,it is really bad if you use both www and non-www as you domain. It will reduce your website's weight.
     
    yangbingqing, Jun 7, 2011 IP
  11. property

    property Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i see,If we use www and non www there is chances of getting split up with links am i right.
     
    property, Jun 7, 2011 IP
  12. gauravsharma.seo

    gauravsharma.seo Member

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #12
    yes using both www and non www can affect your websites ranking in Google because Google see both as two different webpages. so try to use only single domain either with www or without www it depend on your choice. you can use redirection techniques or webmaster tool to handle this.
     
    gauravsharma.seo, Jun 7, 2011 IP
  13. subburajacmic

    subburajacmic Peon

    Messages:
    162
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    You should use 301 redirect for non-www to www.
     
    subburajacmic, Jun 7, 2011 IP