• Resolved stickerey

    (@stickerey)


    Dear all,

    I edited .htaccess in order for my site to load over HTTPS in all circumnstances, however now, my wp-admin wouldn’t load.

    I set the following line in wp-config.php:
    define(‘FORCE_SSL_ADMIN’, true);

    Unfortunately, this didn’t help, my wp-admin still wouldn’t load.

    Do you guys have any more ideas, how to “fix” this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    Please add the following code in the wp-config.php file after the line /* That’s all, stop editing! Happy blogging. */ and check if it works for you:

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

    I hope this will help you.

    Thread Starter stickerey

    (@stickerey)

    Hi,

    Unfortunately this doesn’t solve the problem. I attach a screen of my .php. It is in Hungarian, but the /* That’s all,… part is line 75. After it I added the FORCE SSL ADMIN and the code you provided

    wp-config.php screenshot

    • This reply was modified 4 years, 4 months ago by stickerey.

    Did you try login through your_site_url/wp-login.php?

    Thread Starter stickerey

    (@stickerey)

    Oh, actually no, I forgot to log out and log back in. After logging in again, it works like a charm, thank you very much good sir ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin still wouldn’t work over SSL’ is closed to new replies.