How to Install/Force HTTPS onto a Drupal site

The following instructions will force HTTPS onto a Drupal site.

To force HTTPS on for Durpal add the following code to your .htaccess file:

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com*
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]
  • 0 Users Found This Useful
Was this answer helpful?