WordPress.org

Ready to get started?Download WordPress

Forums

SSL for admin but not the main site (4 posts)

  1. gastronomicslc
    Member
    Posted 1 year ago #

    Hi folks hopefully someone can point me in the the correct direction. I've recently started using Adsense on my blog (www.gastronomicslc.com) and have run into a slight issue with SSL.

    Essentially Google won't deliver their Adsense content over SSL, meaning that when the site loads the ads don't automagically display for most browsers. As the Adsense content is non SSL content being delivered to an SSL page, it requires the user to specifically accept the SSL/nonSSL mixed content before loading - which defeats the purpose of the ads.

    Until now I've ran the entire site over https:// - I don't really need for users to have SSL, but I do prefer to offer it for the dashboard area when logging in.

    The issue I am having though, is by setting the site to run over http:// (to get the Adsense working), when I login over https:// to the dashboard I keep getting kicked out of the dashboard area, and asked to re-login.

    Is there a way to keep the dhasboard https:// but the site http:// ?

    Thanks for your time, apologies if I have missed something terribly obvious in advance!

  2. Knut Sparhell
    Member
    Posted 1 year ago #

  3. gastronomicslc
    Member
    Posted 1 year ago #

    Wow, thanks for the crazy fast reply. That was exactly what I needed. Many many thanks! :)

  4. Knut Sparhell
    Member
    Posted 1 year ago #

    If you don't have secrets inside the admin area, and rarely change passwords for users through user-edit.php, or if you experience some mixed (secure/insecure) content regarding images (objects/embeds/iframes), you might want to just have
    define('FORCE_SSL_LOGIN', true);

Topic Closed

This topic has been closed to new replies.

About this Topic