How to Install/Force HTTPS onto a Drupal site Print

  • 0

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]

Was this answer helpful?

« Back