Skip to main content

www and non-www URL Issues

To avoid canonical issues, you need to use a mod_rewrite string. A simple 301 works on single URLs but does not handle the site-wide canonical issues. You can go to your browser and type in "seocebu.com" and you will be redirected to "www.seocebu.com". Here is a code direct from our HTAccess file:


<IfModule mod_rewrite.c>

   RewriteEngine On

   RewriteBase /

   RewriteCond %{HTTP_HOST} !^www\.seocebu\.com [NC]

   RewriteRule ^(.*)$ http://www.seocebu.com/$1 [L,R=301]

</IfModule>



Google penalizes for duplicate content. If they have two versions of one of your pages indexed, the www and non-www version, you are tagged with duplicate content, even though it is just one page. Also, this will help consolidate your link popularity as well. If you allow for canonicalization to occur on your site, you will have one level of link popularity for the www version and another level for the non-www version. This could even push your PageRank up in 3-4 months.

Comments