Skip to content

Instantly share code, notes, and snippets.

@nikcree
Last active November 30, 2018 23:48
Show Gist options
  • Save nikcree/05fe8dc752f694d763d58e93dd8d7a6a to your computer and use it in GitHub Desktop.
Save nikcree/05fe8dc752f694d763d58e93dd8d7a6a to your computer and use it in GitHub Desktop.
# 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