Skip to content

Instantly share code, notes, and snippets.

Last active Mar 29, 2018
What would you like to do?
Force HTTPS on Wordpress sites
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://www.domain.tld/$1 [R,L]
# Replace domain.tld by you own domain name ;-)
# BEGIN WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment