Support » Multisite » https in url on login page only?

https in url on login page only?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You COULD try forcing it with an htaccess redirect.

    Thanks for your reply. How is this possible? I’ve tried a few things in htaccess but as soon as I set htaccess to login with https, it stays https in the admin.

    In wp-config – the force ssl for admin is set to false whilst adding in my htaccess:

    RewriteRule ^login$ https://mysite.com/wp-login.php [NC,L]
    RewriteRule ^login$ https://mysite.com/login [NC,L]

    I’ve also tried to force it back to http once logged in:

    RewriteRule ^admin$ http://mysite.com/wp-admin [NC,L]
    RewriteRule ^admin$ http://mysite.com/admin [NC,L]

    But the admin just stays https.

    Actually … if you set up SSL for login, WP already forces that.

    SSL for One Domain on Multisite

    if ( $_SERVER["HTTP_HOST"] == "mysite.com" ) {
        define('FORCE_SSL_LOGIN', true);

    That actually should be all you need, and it’ll force WP to serve https on admin. If you JUST want the login page, make it just login.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘https in url on login page only?’ is closed to new replies.
Skip to toolbar