Created
June 22, 2014 08:33
-
-
Save guruguruman/a2f10a9f1a29621eb45a to your computer and use it in GitHub Desktop.
Remove 'www' from URL taken from http://stackoverflow.com/questions/6515081/htaccess-remove-www-from-url-directories
This file contains 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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment