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.
Secure pages seems to be working properly, however on it's initial redirect (the first time it goes from http:// to https://) the theme completely breaks. it seems that no stylesheets are loaded. If you then reload the page or go to another secure page, the theme loads properly.
I'm wondering if a cause may be that we're using Varnish server side caching...Anyone seen this?
Comments
Comment #1
Rob_Feature CreditAttribution: Rob_Feature commentedOops, changing to the proper version where I'm seeing this bug...
Comment #2
babusaheb.vikas CreditAttribution: babusaheb.vikas commentedPut it in your setting.php
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
$protocol = 'https';
} else {
$protocol = 'http';
}
$base_url = $protocol . "://" . "example.com" ;
I hope your problem will solve.