Enforce SSL in Drupal 8 using a redirect

Enforce SSL in Drupal 8 using a redirect timmillwood Wed, 03/05/2017 - 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]

Add new comment