Archive for June, 2009
Use either www or non‐www, not both
A confusion between or use of both www and non‐www for your URLs can result in canonical issues in search engines, where ‘www.example.com’ might be mis‐taken as a duplicate of ‘example.com’. You can use the 301 redirect to force one of the two. For instance, to force the non‐www version to redirect to www, place the following code in your .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]



