WordPress – https : Css and Js files are not working (load on http instead of https)

Add this code in to wp-config.php just before – require_once ABSPATH . ‘wp-settings.php’; line

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

Leave a Comment