WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

redirect all to https on Acquia / Drupal

Submitted by barnettech on Thu, 04/28/2016 - 15:22

drop this above Drupal's index.php redirection in the .htaccess file

  # HTTPS Redirection

  RewriteCond %{HTTPS} off

  RewriteCond %{HTTP_HOST} ^www.insuramatch.com$

  RewriteCond %{HTTP:X-Forwarded-Proto} !https

  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]