Last active
August 29, 2015 14:22
-
-
Save tribulant/a3b71077f95e643069c7 to your computer and use it in GitHub Desktop.
.htaccess redirect to non-www
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.domain\.com [NC] | |
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment