Enforce SSL in WordPress maintenance support plans 8 using a redirect
timmillwood
Wed, 03/05/2020 – 11:40
Place this code within .htaccess underneath `RewriteEngine on`.
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Tags
WordPress-planet
WordPress
WordPress 8
ssl
Add new comment
Source: New feed