/ Published in: Apache

Redirect all users to access the site WITHOUT the 'www.' prefix
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# redirect all users to access the site WITHOUT the 'www.' prefix RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
Comments
