1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Difference between www.abcd and http://abcd and http://www.abcd

Discussion in 'White Hat SEO' started by anuj291, May 10, 2009.

  1. anuj291

    anuj291 Elite Member

    Joined:
    Feb 1, 2009
    Messages:
    1,533
    Likes Received:
    313
    Hi
    I am really confused between these three forms

    Difference between www.abcd and http://abcd and http://www.abcd

    When you go for SEO optimization which form do you use?? Which way do you use for backlink building??

    Whats the difference?
     
  2. p0rnflake

    p0rnflake Newbie

    Joined:
    Feb 16, 2008
    Messages:
    33
    Likes Received:
    3
    actually there are 2 forms. Those with www prefix and those without. The HTTP only tells that HyperTextTransferProtocol handles it.

    using a non-www-version of a webpage will lead to setting cookies for the whole domain, thus making cookieless domains (for example for fast cdn-like access of static resources like css, js and images) impossible.

    source: http://blog.stackoverflow.com/2008/06/dropping-the-www-prefix/
     
  3. anuj291

    anuj291 Elite Member

    Joined:
    Feb 1, 2009
    Messages:
    1,533
    Likes Received:
    313
    I still dont understand so is that good or bad?? as in using without www and using with www, can someone tell me in laymans terms...

    also i just checked i put my website with www and when i clicked enter it just removed the www and become http://abcd type???

    Please suggest
     
  4. ageofz

    ageofz Registered Member Premium Member

    Joined:
    Mar 27, 2009
    Messages:
    51
    Likes Received:
    31
    I have found that most people redirect their domain name to http;// www . Look at google. I always type google.com instead of www google com and sometimes I will be given a page that says this page has been moved to this and it redirects to www google com . I think it's just good for SEO to have www beacuse it makes all of your links point to the same address instead of being split between http and www That's just a theory though. But if big G is doing it I guess there is some reason behind it, no?
     
  5. anuj291

    anuj291 Elite Member

    Joined:
    Feb 1, 2009
    Messages:
    1,533
    Likes Received:
    313
    i just saw that in my control pannel my site is redirected without www
    ie my wordpress installation is without www, so even when i type www it gets redirected to one without www

    So i should build links without www ??
     
  6. 4wanglah

    4wanglah Junior Member

    Joined:
    Sep 14, 2008
    Messages:
    199
    Likes Received:
    69
    Location:
    behind you
    nothing different but you have to redirect either one or else the google will look it as 2 different sites..
     
  7. jarhead

    jarhead Junior Member

    Joined:
    Jan 17, 2009
    Messages:
    114
    Likes Received:
    45
    Location:
    OZ
    Home Page:
    the www is just a subdomain.
    it makes no difference as long as www.yoursite.com is the same as yoursite.com
     
  8. kalatopi

    kalatopi Newbie

    Joined:
    Aug 3, 2008
    Messages:
    49
    Likes Received:
    29
    If SEO matters to you, then go for http://www.example.com because other people who link to you are likely to use that format. When I built my first two sites I thought I was being cute and trendy by dropping the www, but when I learnt SEO, I realised the mistake and much later I learnt how to make a .htaccess file (used by most websites that use an Apache server) and place it in the root directory.

    Code:
    RewriteEngine on
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]*/)*index\.html? [NC]
    RewriteRule ^(([^/]*/)*)index\.html?$ http://www.example.com/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^example\.com [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
    
    The first rewrite rule rewrites all index pages, both index.html and index.htm to "/ " for both non-www and www, and shows them all to be with a "http://www." prefix. The redirect works for index pages both in the root and in any folders, and the 301 redirect preserves the folder name in the redirect.

    All non-www pages are made to appear as www. by the second rewrite rule. This second directive is never used by index pages as the first directive will have already converted all of them.

    Here is another way to do the same thing, except that it converts links to "example.com" and "example.com/" to "www.example.com/".

    Code:
    Options +Indexes
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com
    RewriteRule ^(.*)$ http://www. example.com/$1 [R=permanent,L]
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ http://www. example.com/$1/ [L,R=301]
    
    This should be a text file, and saved as .htaccess (dot at the beginning) in the home page directory. So, when someone links to you without a www, it is presumed to be there. This matters to search engines for pagerank purposes. If you didn't bother to do this and got some links to www and some without the www, then you could see different PR values for the two versions of the URL. This script helps you to collect all link juice to the preferred domain.

    For Google only, through Webmaster Tools you can designate either version to be the canonical (authoritative) version, so the .htaccess file is not necessary, but it won't help with other search engines.

    Some hosting companies have changed server settings so that you can't see dot files (such as .htaccess) but they are there. Once you have uploaded one, you won't see it at the other end. Be sure to keep a copy on your PC in case you need to edit it.
     
    • Thanks Thanks x 1
    Last edited: May 11, 2009
  9. plateau

    plateau Regular Member

    Joined:
    Sep 23, 2008
    Messages:
    247
    Likes Received:
    393
    Location:
    DiscoNnect
    Actually www does make a difference. If you log into your google webmasters account, there is an option to enforce your site to have www. or not to have it.

    Another thing that could damage your SEO efforts is the / slash. For example, sometimes when you go building backlinks to your site you do this : http://www.yoursite.com/ and sometimes you do this http://www.yoursite.com ...See the / difference?

    Stick to one format as mixing it up could damage your SEO efforts. Though there is some argument about this but it's better to stay on the safe side and standardize your url's. Hope you liked this tip :)
     
    • Thanks Thanks x 1
  10. anuj291

    anuj291 Elite Member

    Joined:
    Feb 1, 2009
    Messages:
    1,533
    Likes Received:
    313
    Thanx for the info guys... Really helpfull...
    i guess redirecting other links to same is the only way..
    One question still if i have say 10 links to a domain without www and 10 links to a domain with www, if i redirect one of them, then total i will have 20 links to one domain???
     
  11. plateau

    plateau Regular Member

    Joined:
    Sep 23, 2008
    Messages:
    247
    Likes Received:
    393
    Location:
    DiscoNnect
    I don't think redirecting would do any help now in SEO wise cause the links are already there, unless you can go changing your links like in squidoo's, ezine's or something like that.

    Don't worry about what's done. Concentrate on your future efforts... :)