Rewrite http:// to http://www.

One of the main reasons you would want to convert your domain to http://www, is to make search engines only see one webpage.

You will avoid duplicate content on search engines by doing so.

Simply add this to your .htaccess file.

RewriteEngine On
rewritecond %{http_host} ^
rewriteRule ^(.*)$1 [R=301,L]

Posted in Tips & Code

Leave a Reply

Your email address will not be published. Required fields are marked *

anti fatigue mats