What is the difference between having a website being linked to as www.MavenWebsites.com and MavenWebsites.com? The differences is that search engines can think that they are two different websites; which is a problem for multiple reasons including SEO. First and foremost for SEO purposes, you don’t want your link juice going to two different pages that ARE the same page, so making sure that your website is either all www or all no www (bare with me:) is very important. And can get your pages to rank higher.

So what’s the solution? The solution is to create a 301 redirect to have your entire site redirect to one or the other. Personally I prefer to have my site as www.MavenWebsites.com but you can have it either way.

Here is how you can enable your sitewide 301 redirect on an Apache server:

Add the following code to your .htaccess file:

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

Most hosting company’s will have the Apache Rewrite Module turned on, but if they do not, just contact them and ask them to turn it on.

That’s it and good luck with the rest of your web development!