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