• I found a strange behaviour of the favicon on WordPress.

    I use WordPress on my website that supports both HTTP and HTTPS protocol. I only redirect user to HTTPS on the login page with this command added to wp-config.php :

    define('FORCE_SSL_LOGIN', true);

    Going to the https version of my website leads to no warnings from the browser. However on the login page, I noticed that the favicons links are back to https://… even when the page is in https (with leads to warning from the browser and thus not having the green padlock).

    How can I change this odd behavior ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    From the viewpoint of making things easy, it’s better to make your site all SSL all the time than popping in and out of SSL mode. Google will like you better for it. Why not just make that change?

    Thread Starter lokuber

    (@lokuber)

    My website works on both http and https. I am just forcing SSL on the login page as I don’t feel the need right know to fully switch to https even though it will only be a matter of 2 defines(…) lines in my wp-config.php file.

    I was just trying to find a solution to this strange behavior about favicon

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No, it’s more that a matter of two defines, but the issue is that you’re trying to run both. It’s a LOT easier to solve by going all https all the time. Really.

    (You’ll get mixed content issues if you just use two defines. Use the plugin “better search and replace”. 1. Disable all cache. 2. Use the plugin to search for https://example.com and replace with https://example.com 3. verify site works. 4. disable/delete the plugin. 5. re-enable caching plugins. )

    Thread Starter lokuber

    (@lokuber)

    I could use this and it would work like a charm (after a quick db search and replace like you said) :

    define(‘WP_SITEURL’, ‘https://mywebsite.com’);
    define(‘WP_HOME’, ‘https://mywebsite.com’);

    I just didn’t understand why favicon are linked with https on every other pages except the login one.
    Anyway thanks I guess

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Favicon not in https’ is closed to new replies.