Created
September 1, 2019 04:55
-
-
Save earvinpiamonte/a1e476406ab703e3f9366031c40a2cc8 to your computer and use it in GitHub Desktop.
Manually force to HTTPS for Apache
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
# Note: Replace "example.com" with your own domain. | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment