Created
October 3, 2018 14:36
-
-
Save junaidtk/f64ff6a8ccfa996593053df73691eddc to your computer and use it in GitHub Desktop.
Convert http request to https
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
We need to add the below code in between <IfModule mod_rewrite.c> | |
# Rewrite HTTP to HTTPS | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] | |
The above code will load the https url instead of http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment