matthewselby
8/22/2016 - 6:30 AM

How to force https for a specific domain in WordPress using .htaccess (replace domain.com with your domain)

How to force https for a specific domain in WordPress using .htaccess (replace domain.com with your domain)

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://domain.com/$1 [R,L]