It would be a nice addition, if the module detects, if the page is accessed via http or https, and redirect to the protocol specified in the module configuration.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bahuma20’s picture

Status: Active » Needs review
FileSize
1.04 KB

Implemented this. Here's the patch.

bahuma20’s picture

bahuma20’s picture

New, working patch.

malcolm_p’s picture

I've applied this patch as well, very useful. I'd like to see it in the next release.

timhilliard’s picture

Status: Needs review » Closed (won't fix)

I think using something like securepages or a htaccess rule would be better suited to this. The code is also incomplete as it does not take into account reverse proxies which use alternate headers to specify that the request is over HTTPS.