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

anuj291

Elite Member
Joined
Feb 1, 2009
Messages
1,564
Reaction score
325
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?
 
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/
 
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
 
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?
 
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 ??
 
nothing different but you have to redirect either one or else the google will look it as 2 different sites..
 
If SEO matters to you, then go for 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 "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.
 
Last edited:
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 :)
 
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???
 
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???

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... :)
 
Back
Top