Created
July 5, 2011 17:05
-
-
Save douglasmiranda/1065288 to your computer and use it in GitHub Desktop.
Remove www in url (.htaccess snnipet)
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
#Paste in your .htaccess file, and the requests www.yoursite.com will be redirected to http://yoursite.com | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^yoursite.com$ [NC] | |
RewriteRule ^(.*)$ http://yoursite.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment