Created
November 4, 2014 11:31
-
-
Save gnilchee/823803d7c5ae8917d37a to your computer and use it in GitHub Desktop.
redirect only a certain naked domain to www, it will ignore subdomains
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} ^example\.com | |
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment