Last active
April 11, 2017 14:11
-
-
Save mucahitnezir/53cfaf62b86a86489abc25152faec376 to your computer and use it in GitHub Desktop.
.htaccess commands for www redirect if url doesn't have www subdomain
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} ^yoursitename\.com [NC] | |
RewriteRule ^(.*)$ http://www.yoursitename.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment