Last active
June 3, 2019 22:02
-
-
Save tobiaslidstrom/6596c851c7b5765ea1a63bdd783ef03c to your computer and use it in GitHub Desktop.
Redirect domain to HTTPS
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 | |
| # Redirect domain to HTTPS | |
| RewriteCond %{HTTPS} off | |
| RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment