Enforce SSL in Drupal 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
drupal-planet
drupal
drupal 8
ssl
Add new comment
Source: New feed