Last active
August 29, 2015 14:26
-
-
Save rnarian/fed018b8ffc77e9ae992 to your computer and use it in GitHub Desktop.
Generic htaccess redirect www to non-www
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
via http://stackoverflow.com/questions/234723/generic-htaccess-redirect-www-to-non-www