Redirect URLs to www.

Category: X-Cart Snippets
Added:
Enter Price $
SKU SKU8211221
Quantity

To avoid duplicate URLs, use this to redirect non-www. URLs to www.

Add this code to your root .htaccess file...

RewriteCond %{HTTP_HOST} ^%{HTTP_HOST} [NC] 
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
The website uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy.
More Information