askmatt

November 21, 2009

Magento – Force use of non-www domain

Filed under: i like magento — Tags: , — askmatt @ 5:18 pm

After the line that reads ‘RewriteEngine on’ in the .htaccess file which is in the Magento root directory add these 2 lines.

RewriteCond %{HTTP_HOST} ^www.yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress