Fixing the "Back to site" link on the login page (https -> http) (1 post)

  1. Bill Dennen
    Posted 4 years ago #


    I run a Multisite network that uses https/ssl for the admin. The front-end is not behind https, though.

    On the login page (http://somesite.com/wp-login.php), there is a link back to the site at the bottom, below the login form. This link actually links to the https version of my site (ie. https://somesite.com/).

    I'd like this to link to the http version of the site, if that makes sense.

    I've taken a look at wp-login.php and it is calling this to construct that link:

    home_url( '/' )

    This seems perfectly reasonable to do, except that home_url automatically puts https in front of the home url when the function is called on an SSL'd page.

    Is there a way to over-ride this?


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.