Created
December 23, 2017 14:43
-
-
Save shabbirbhimani/6e8af4f61f927e7d7fac2c82f6e8ddfe to your computer and use it in GitHub Desktop.
htaccess Redirect HTTP to HTTPS using mod_rewrite
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment