Created
June 13, 2017 21:01
-
-
Save chrisdavidmiles/f57bc367214d8147f9e9026fbbaca6bf to your computer and use it in GitHub Desktop.
301 redirect http:// to https:// for specified domain
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 %{SERVER_PORT} 80 | |
RewriteCond %{HTTP_HOST} ^(www.)?example\.com$ | |
RewriteRule ^(.*)$ "https\:\/\/example\.com\/$1" [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment