Created
April 14, 2014 12:11
-
-
Save rxnlabs/10642148 to your computer and use it in GitHub Desktop.
htaccess - redirect non-www to www and stop subdomains from redirecting to folder
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 to www and stop subdomains from redirecting to folder | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^mydomain.com$ | |
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment