Last active
January 20, 2017 02:31
-
-
Save tomhayes/7384fa0ae11656dbb5bc337d957905b3 to your computer and use it in GitHub Desktop.
Force www. (.htaccess)
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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^your-site.com [NC] | |
RewriteRule ^(.*)$ http://www.your-site.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment