• Hi… on my site http://mariannefrylectures.co.uk I am trying to secure certain pages using the plugin WordPress HTTPS. This works OK provided the page content loads using relative addressing “/directory…” and not absolute addressing as “http://<address>/directory…”.

    If I am logged on and the WP admin bar is being displayed, pages that should be secure are being forced to http.

    Examining the browser console, I can see that the search button in the WP admin bar is displayed with the following code:

    <li id="wp-admin-bar-search" class="admin-bar-search"><div class="ab-item ab-empty-item" tabindex="-1"><form action="http://mariannefrylectures.co.uk/" method="get" id="adminbarsearch"><input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" /><label for="adminbar-search" class="screen-reader-text">Search</label><input type="submit" class="adminbar-button" value="Search"/></form></div> </li>

    The problem is, I believe, the absolute http: address for the form action, which prevents the page loading http or https as required.

    If I log out so the admin bar is not displayed, this problem goes away.

    I believe this is a WP issue, not a theme or plugin issue. Any advice, please?

    NB At the time of writing there is another element on my site caused by my theme but that is not the issue I am addressing in this post.

    • This topic was modified 8 years, 2 months ago by Antipole.

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

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

    (@sterndata)

    Volunteer Forum Moderator

    If you’ve gone through the trouble of setting up SSL, why not make *all* of your site https, all the time? It’s a lot easier than taking it in and out of https mode.

    Thread Starter Antipole

    (@antipole)

    I was trying to avoid the (small) overhead in securing pages where there is nothing of import – most of them.
    But given the hassle, I have decided to force the whole site onto SSL, as advised by @sterndata. It is certainly less hassle.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    And it will make Chrome a lot happier when they start getting nasty about non-SSL sites in a few months.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Absolute addresses in WP admin bar stopping page loading as http or https’ is closed to new replies.