Created
March 10, 2017 10:48
-
-
Save ajitbohra/a34a48c7a71e8198f6da0a105aa77dab to your computer and use it in GitHub Desktop.
Force secure access to domain / website
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 | |
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment