Hi! I'm Allen and I welcome you to my blog. I blog mainly about my blogging experiences where I get to learn how to earn money online through blogging and have fun doing so. To learn more about my blog, you may want to subscribe to my RSS feed. If you have some questions, feel free to ask me by using my contact form. Thank and have a nice day.
To WWW or not to WWW, which would you prefer for your domain?
Just to share some information, your site can be reached via two addresses. For example, this blog can be reached by using:
However, it is best to use only one address for your blog. This will be your preferred domain.
Why do I need to have a preferred domain?
For people, it does not matter if you have two addresses. However, for search engines it does.
Search engines are not able to conclude that http://silkenhut.com and http://www.silkenhut.com are just one and the same. Search engines will treat these address as two separate sites. Check out these google queries for silkenhut.com.
As you can see, these addresses are supposed to lead to the same site but Mr. Google only knows about one of them.
If you are concerned about your search engine rankings/results, page rank and other similar search engine stuffs, then you should only have one address. Having two address divides your site. You can also be flagged for duplicate content since http://yourdomain/yeah.html will be considered a duplicate for http://www.yourdomain.com/yeah.html.
How do I use only one address?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com$ [NC]
RewriteRule ^.*$ http://yoursite.com%{REQUEST_URI} [R=301,L]
</IfModule> <IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^.*$ http://domain.com%{REQUEST_URI} [R=301,L]
</IfModule>Now decide which one do you want, to www or not to www?
.htaccess code cited from Nate White Hill dot com
Popularity: 1% [?]
1 Ping/s
Silkenhut reaching out Issue 8 | Silkenhut's World
September 9th, 2007 at 9:31 am
1 [...] edit your .htaccess file using a program and risk lesser problems that editing it manually. I once edited my .htaccess to remove the “www” when you access my [...]4 Responses
Rozeh (5 comments.)
July 16th, 2007 at 9:09 pm
1I didn’t know this matters. pero ngayon sinabi mo na, I’ll take note of this. may dalawang domain ako eh
anyways, I’m going to email you regarding an invitation to err (not here), probably sa gmail mo na since loyal ako doon. lol
Allen
July 16th, 2007 at 9:49 pm
2It matters if you are after for search engine rankings and pagerank. Thanks , I got your email.
Jaypee (37 comments.)
July 17th, 2007 at 11:31 am
3Good post! Btw, you need to edit this line - “Why do I need to have a proffered domain?” Hehe
I use the Enforce .www Preference and I’ve also configured my domain to strip off the www prefix from my webhosting user panel.
Allen
July 17th, 2007 at 3:43 pm
4Ops! Typo! Sorry haha
Hmm I also installed enforce www preference but I dont know where to configure it so I just use the .htaccess method. =)
Thanks for visiting.
Featured Blogger
"center">
Recent Posts
Sponsored Ads
Subscribe
Subscribe to my feeds
Top Commentators
Categories
Directories and Stats
Comment Policy

Comments on this blog are made DOFOLLOW for the Google Spiders after three (3) legit comments. Comments are moderated. Spam will not be tolerated.