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.
By jcharlesberry on
Hello, we have been trying to convert our site to https/ssl, but after the switch:
1. The admin section does not load correctly (unstyled).
2. Some of the files are not loading correctly.
Are there settings in .htaccess that could be the issue maybe? I can't think of what could be different between the two environments.
Thanks!
Comments
=-=
I'd review https://www.drupal.org/https-information
thanks
Yes, I have been reading that, but there's a lot of things there I have no experience with. Was hoping someone would have had the same problem.
UPDATE: Eureka! I found that this
$_SERVER['HTTPS'] = 'on';
Fixed all the issues. Thanks for the recommendation.
Add this to your htaccess
Add this to your htaccess file:
This ensures your whole site gets redirected to HTTPS
Also, double check that all images and files are served with HTTPS (this inlcudes external links added to your site), otherwise you'll only see a partial secure site in the address bar.
-----------------------------------------------------------------
We build engaging websites and intuitive designs that will benefit your business.
Duvien