Skip to main content

HTTP to HTTPS redirects for Drupal Multisite Setup

Comments

4 comments

  • Tearabite
    Have you tried using a Drupal module to do this? I use Secure Pages and it does the job - but I'm not in a multisite setup.
    0
  • fuzzylogic
    You could try...
    RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    or
    RewriteEngine on RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    0
  • cPanelMichael
    Hello, You may also find these threads helpful: force https for a given website and not all hosted accounts SOLVED - HTTPS Redirection For All VirtualHosts Thank you.
    0
  • ProUser
    Have you tried using a Drupal module to do this? I use Secure Pages and it does the job - but I'm not in a multisite setup.

    It might be a solution, however the Secure pages module is not something I would use in a production environment. The latest version is a beta 2 from November 2013. The issue queue, well... Also this module is not covered by Drupal"s security advisory policy.
    0

Please sign in to leave a comment.