To use or not to use WWW before your domain name

It seems the www. prefix to your domain name is actually a subdomain. When internet first started, and website were being created, www prefix would refer to a website as being a World Wide Web, probably trying to differentiate from the intranet website I suppose.

However, due to frequent usage, most people would consider affixing a www prefix whenever they type in a domain in the URL address. Hence as webmaster, we still maintained the www prefix to a domain. And yet, using it, it actually means a subdomain, and hence when you make your website, it is referring to the various pages in the subdomain of the www.yourwebsite.com!

In the web hosting provider, the control panel has set up the DNS to point the URL with or without the www prefix to the same content. In some ways this is not good in terms of SEO because with and without the prefix is considered as separate domain, thus search engine like Google would treat it as separate and ends up as duplicate content, and there is a possibility of getting both pages penalized. If you are lucky then just one of the pages will still show up during search while the other is sandboxed.

Setting your Website with or without the WWW prefix

So the way out for this is to use the Apache htaccess configuration file and make it redirect to your preferred URL display. Easily done by including this entry to set the condition in the htaccess file:

# To redirect all users to access the site WITH the ‘www.’ prefix,
# (http://example.com/… will be redirected to http://www.example.com/…)

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

# To redirect all users to access the site WITHOUT the ‘www.’ prefix,
# (http://www.example.com/… will be redirected to http://example.com/…)

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

Now the question is, which way is better? With or without the www prefix?

Actually there is no which one is better. It is up to your preference. If you like it with the prefix based on the traditional way most websites were set up, then add it in. If you would prefer straight in without the prefix to make the URL look nicer and shorter, so be it. So far most websites is still sticking to the traditional URL with the prefix on their domain name. Facebook, Microsoft, Google, Yahoo, etc they are still using the prefix. Twitter has done away with the prefix perhaps to keep in character with their short 140 character blog limit!

Once you have chosen your preferred URL display, you should use the Apache rewrite configuration to set only one way for your domain URL to be displayed to avoid the duplicate content issue.

In terms of SEO, neither has any advantage over the other. So it is just a matter of personal preference.

I suppose you can even separate your website sections by providing different content for the www and non-www section. You can separate it by configuring your DNS to treat each separately. But I wouldn’t recommend that, as it would lead to confusion for your visitors. There are so many other subdomain names you can choose for better sectioning of your website!

Short Domain Names

Since of recent, I’ve been experimenting with short domain names, I decided to do away with the www prefix and see how it goes. Mind you, it is very difficult to get nice short domain names. Virtually impossible to get 3 letters or 3 characters domains with .com, .net, .org, etc. They are all gone and taken up! The 4 letters (or some people call it the LLLL.com or 4L TLDs) is probably all gone though you might still get lucky with .net, .org, etc; while there is still possibilities with 4 character (CCCC.com or 4C TLDs). I got one with a mix of alphabets and a number and it is a .com.

Why go for .com? Well, it is more recognizable, also when most people key in directly into the address bar, they tend to type .com extension rather than .net or .org. In terms of search, it doesn’t matter which extension you use. Hey you can even use the less popular .info or .biz, but in all my search experience, only a few rare .info and .biz websites pop up. Somehow a .com seemed to do better but not always. Perhaps it is due to the popularity of the .com. After all, Wikipedia uses .org and they still do well in search.

So with short domain name for my website, I decided to go without the www prefix and make the address shorter when showing in the URL address bar of the browser. In case somebody types in with the www prefix, the Apache htaccess condition entry will resolve that for me. In terms of search, no issue at all. Just make sure all your SEO linking efforts is pointing to an address without the www prefix.

Alright, back to fixing my website!

Related Posts Plugin for WordPress, Blogger...



Leave a Reply

Blue Captcha Image
Refresh

*

Google  Site Search for JanLeow.com


Bookmark and Share

Enter your email address:

RSS Delivered by FeedBurner