Created
July 12, 2013 01:02
-
-
Save griiettner/5980613 to your computer and use it in GitHub Desktop.
.htaccess to redirect no www to 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
# Redirect non-www urls to www | |
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com | |
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment