Created
September 30, 2016 15:02
-
-
Save amccarty/2148ff269b3f62f1fcf0748ab9811f63 to your computer and use it in GitHub Desktop.
apache redirect http 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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
| RewriteRule !/status https://%{SERVER_NAME}%{REQUEST_URI} [L,R] | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment