Created
October 15, 2010 12:06
-
-
Save rbtbr/628090 to your computer and use it in GitHub Desktop.
mod_rewrite Rewrite URL without 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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} !^www.domain.tld$ | |
RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment