Created
November 9, 2010 15:57
-
-
Save lukemorton/669274 to your computer and use it in GitHub Desktop.
Get ride of www, put this in your htdocs (or public_html) directory
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
# Some rewriting | |
RewriteEngine On | |
# Force remove www | |
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