Last active
July 22, 2019 10:56
-
-
Save florieger/69ed1ec5c9cf98c8b2bf9d968a8bc929 to your computer and use it in GitHub Desktop.
AppCron HTTPS forward
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
# AppCron HTTPS forward | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on [NC] | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
Details about the RewriteRule regex:
https://stackoverflow.com/questions/12907493/rewriterule-vs-vs-is-there-a-difference
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put it at the beginning of the file, before other rules.