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.
I am trying to configure SSL.
After I add this:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
at the end of the .htcaccess file (like advised in many posts) to make all my site as https, the site loads with broken layout, I don't see the administration bar and I can't log in.
I can see from inspector the tag has class of "no-js", which is not the case if I revert back to http commenting the added lines in .htcaccess.
I've already changed all the full links of my sass/css files to https.
Comments
Comment #1
kopeboy CreditAttribution: kopeboy commentedComment #2
fubhy CreditAttribution: fubhy commentedPlease review the issue tag guidelines. Issue tags are not meant to be used as randomly assigned taxonomy terms. https://drupal.org/node/1023102
Regarding your problem:
Are there any JS errors in the console?
Comment #3
kopeboy CreditAttribution: kopeboy commentedI did not create any new tag but used existent.
I resolved the problem commenting these line in .htcaccess
# RewriteRule ^ - [E=protossl]
# RewriteCond %{HTTPS} on
# RewriteRule ^ - [E=protossl:s]
and adding
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
to the bottom,
and adding this to bottom of settings.php
$conf['https'] = TRUE;
and changing my $base_url in settings.php to https://xxxxxx.xxx