WWW Vs No WWW On A Canonical URL?

Print Article Print Article

WWW Vs No WWW On A Canonical URL?

By Web Hosting Help Guy

So though this is not a new issue on the web, there still continues to be debate over the use of WWW versus no WWW on canonical URLs. With websites like Yes-WWW and No-WWW, you can see just how strong of a stance groups have on this topic.

Now, while I’m not going to side with either, I do want to clarify and emphasize that after all of the debate, it really comes down to a matter of preference.


WWW or No WWW


Which is better for SEO?

The answer is…it does NOT matter. Using either WWW/no WWW versions of a website does not effect a website’s rankings because search engines do not base their ranking algorithms on that part of a URL. But, what is important is that for which ever one you choose, you need to continue to only use that format for all inbound links to your canonical URL. Otherwise, if some websites link to your WWW site, while others link to your non WWW site, then your search engine rankings will be split and not strengthen your canonical URL.

In this case, what you need to do from the get-go is create a 301 redirect from your non-canonical URL to your chosen canonical URL. This way, search engines will automatically redirect inbound links to your canonical URL, giving it the full “link juice” that it’s meant to get.

Here are 2 ways of doing a 301 redirect:

I. Through cPanel:

CPanel Redirects Screencap

  • Log into your cPanel account
  • Under the “Domains” section, click “Redirects”
  • Select the domain name in the drop down menu next to “http://(www.)?”
  • In the text box to the right, type in the URL that you want to redirect
  • Next to “redirects to?” enter your canonical URL
  • Click “Add”


II. Through .htaccess:


  • Download the .htaccess file
  • Open the file in a text editor (e.g. Notepad)
  • Use the following code below to redirect (replacing “domain.com” with your URL)
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{http_host} ^www.domain.com$
RewriteRule (.*) http://domain.com/$1 [R=301,L]


NOTE – For SSL Certificates:

By default, companies assign SSL’s to “exampledomain.com” without the WWW, so if you decide to include the WWW in your canonical URL, make sure to notify your SSL company about that, and remember to do so every time you do renewals.


Are you Pro or No WWW?

Related posts:

  1. Subdirectories – 3 Ways To Hide Them Through CPanel
  2. 3 Ways To Shorten URLs
  3. Search Engine Ranking – 5 Useful SERP Trackers
  4. The Benefits Of Sitemaps & How To Create Them
  5. iWeb – How To Publish Your Website Without MobileMe

Comments

Cast-Iron Hosting Review June 3rd, 2011 at 12:01 pm

I recently heard about how it’s a good idea for SEO purposes to do a 301 redirect from your http:// over to http://www. or vice versa. Thank you for providing the .htaccess code so I could do this. Regarding which I prefer… I’m for the WWW so I redirected http:// to http://www.

one giant January 12th, 2012 at 2:13 pm

What about if you’re going to have sub-domains, ex: “clients.mydomain.com” or “mail.mydomain.com” or “intranet.mydomain.com” etc., they all mean something and take you somewhere different than the regular domain name does, but www. doesn’t mean anything or take you anywhere special. In that case, it seems www. is pointless.

“www.” is really just another subdomain, right? So what’s the point in having it? It seems like an outdated convention to me, and unless I’m missing something, there is no point in having it. Sure, it might be old-habit for people to type it into the address bar, so having it resolve to the non-www canonical URL makes sense, but to have non-www forward to the www. address? That seems like a meaningless preference formed from the 90s when people still didn’t get what a website was- time to moooove on. -__-

Leave A Comment

Name *required

Email *not published *required

Website