Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | add_check_for_https-2382581-3.patch | 1.3 KB | bahuma20 |
Comments
Comment #1
bahuma20Implemented this. Here's the patch.
Comment #2
bahuma20Comment #3
bahuma20New, working patch.
Comment #4
malcolm_p CreditAttribution: malcolm_p commentedI've applied this patch as well, very useful. I'd like to see it in the next release.
Comment #5
timhilliard CreditAttribution: timhilliard at Acquia commentedI 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.