Last active
November 30, 2018 23:48
-
-
Save nikcree/05fe8dc752f694d763d58e93dd8d7a6a to your computer and use it in GitHub Desktop.
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
# BEGIN Force HTTPS - Place after WordPress Permalink block | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{HTTPS} !=on [NC] | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] | |
</IfModule> | |
# END Force HTTPS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment