Community Support
January 09, 2009, 08:56:38 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Staff List Login Register  
Pages: [1]
  Print  
Author Topic: Which should you use, www or non-www?  (Read 53 times)
Andrew
Byteact/i.create Administrator
Administrator
*****
Offline Offline

Hosting Plan: Premium Hosting
Operating System: Linux
Browser: Opera
Posts: 127
Referrals: 2



« on: June 12, 2008, 01:53:50 PM »

Back in the early days of the World Wide Web, everything had a symbolic link to point it to the correct location, for instance you would access ftp.domain.com to access the FTP server, you would access mail.domain.com to access the Mail server, you would access telnet.domain.com to access the Telnet server and so on. So when the World Wide Web came about, naturally people decided that hey, it should have www.domain.com to make it easy for people to remember how to get to the hypertext documents.

So now, years later, we still use www even though it isn't really necessary as it is a sub-domain which points back to domain.com actually causing more load time for your site. Now if you can access www.domain.com and domain.com and both are valid, chances are you will be fracturing your SEO because some links point to domain.com and some point to www.domain.com when pointing to your site and the spider sees them as two separate websites.

So, how can we fix this? Well, you can tell everyone to link one over the other but that really doesn't work for those inbound links you don't know about until after the fact or... you can redirect one to the other.

First step of course is to create a .htaccess file if you don't already have one and add one of the following bits of code...

Code:
#Redirect all queries to www.domain.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

Code:
#Redirect all queries to domain.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.net$ [NC]
RewriteRule ^(.*)$ http://domain.net/$1 [R=301,L]

Now if you're just starting the site, you have some time to make the decision as to which you prefer, in my case, I found one of my sites had a much higher pagerank on the www even though I prefer non-www so I chose to redirect all traffic for that site to the www address.

Second step is to get a Google Webmasters Tools to control how Googlebot interacts and lists your site, you can set the new preference for your listing there.

Third, when you share your link with others or if you use the full address in your site, always, ALWAYS use the way that you chose, if it's non-www then domain.com, if you chose www then www.domain.com to ensure your site link once crawled points to the address you're trying to build Pagerank on.

Links

What's My Pagerank?
Google Webmasters Tools
« Last Edit: June 12, 2008, 01:58:44 PM by Andrew, Reason: Added link section » Logged

Unsolicited private messages for support issues will go unanswered
Invisible
New User
*
Offline Offline

Hosting Plan: Free Hosting
Operating System: Windows
Browser: Mozilla Firefox
Posts: 36
Referrals: 0


I Know... Im Kewl


WWW
« Reply #1 on: December 30, 2008, 04:51:20 PM »

Very useful article, I must say that one has been buging me for a long time, thank you for clearing that up...

I do have on question for you though... Wich would be the better decision from the start www.domain.com or domain.com ?
Logged

Thats right... I Know what im doing... Usually...

SMF rules! Byteact.... NOT actually a user yet.... But Im considering it... the hosting plan looks to good to be true... lol
Andrew
Byteact/i.create Administrator
Administrator
*****
Offline Offline

Hosting Plan: Premium Hosting
Operating System: Linux
Browser: Opera
Posts: 127
Referrals: 2



« Reply #2 on: December 30, 2008, 06:07:34 PM »

Personally I prefer the non-www version as it does, in a small way speed up your site among, helps in a small way with core domain SEO, shorter and easier to remember, good for marketing and word of mouth relaying and it cuts out a bit of cruft.

In the case of Byteact however, the decision was made purely on the fact that the PR of the www version was higher than the non-www version so I just set about to make the www the preferred method.
Logged

Unsolicited private messages for support issues will go unanswered
Invisible
New User
*
Offline Offline

Hosting Plan: Free Hosting
Operating System: Windows
Browser: Mozilla Firefox
Posts: 36
Referrals: 0


I Know... Im Kewl


WWW
« Reply #3 on: December 30, 2008, 07:08:08 PM »

Ahhh, I understand, thanks for clearing that up
Logged

Thats right... I Know what im doing... Usually...

SMF rules! Byteact.... NOT actually a user yet.... But Im considering it... the hosting plan looks to good to be true... lol
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC | Sitemap | Archive Valid XHTML 1.0! Valid CSS!