Redirect to the https version of your site

Submitted on Fri, 10/03/2017 - 17:48

Edit .htacces in your server root folder and add the following snippet after `RewriteEngine on`

# Redirect http requests to https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Tested with Drupal 8

More info about HTTP Secure in the Drupal Community Documentation