SSL Breaks WordPress CSS

For the login part, this works for me …

Paste the following line in your wp-config.php

if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on';

but make sure that you do it before the following line

require_once(ABSPATH . 'wp-settings.php');

By doing so you can get your admin panel back …
See details here

Also to avoid getting Mixed content, after restoring your admin panel, remember to go to SETTINGS, General, change Server URL from http to https.

Leave a Comment