Skip to content

Instantly share code, notes, and snippets.

@jesders
Last active October 5, 2018 20:34
Show Gist options
  • Save jesders/996dfa0dac2383a945ee28151fd664e0 to your computer and use it in GitHub Desktop.
Save jesders/996dfa0dac2383a945ee28151fd664e0 to your computer and use it in GitHub Desktop.
Force HTTPS
#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]
#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