Last active
October 5, 2018 20:34
-
-
Save jesders/996dfa0dac2383a945ee28151fd664e0 to your computer and use it in GitHub Desktop.
Force 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
#Force HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://domain.com%{REQUEST_URI} [R=301,L] | |
#NEW | |
########## | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://gilpinezo.com/$1 [R=301,L] |
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
#Add This line - For Wordpress | |
define('FORCE_SSL_ADMIN', true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment