WordPress.org

Ready to get started?Download WordPress

Forums

Https redirect loop on mutlisite (6 posts)

  1. thels
    Member
    Posted 1 month ago #

    Hi

    I purchased a wildcard SSL cert and had it installed.
    every time I force the HTTPS on admin and login I get a redirect loop
    whether I add to wp-config or add to htaccess or use WordPress Https plugin i still get redirect loop.
    the only time it works if use Force SSL Exclusively on each page but this does not work on login and admin.

    please can you help

  2. How did you force https on admin?

  3. thels
    Member
    Posted 1 month ago #

    Hi

    I add this
    define('FORCE_SSL_ADMIN', true);
    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
    $_SERVER['HTTPS']='on';
    to wp config
    I have also tried wordpress Https plugin the only way that works if I use the the force page. but if enable admin on this plugin it goes into a loop.

    thanks

  4. I would actually edit the site in the DB and change http to http for that domain.

  5. HuddersfieldH
    Member
    Posted 1 month ago #

    You only need the first line to make the admin SSL
    define('FORCE_SSL_ADMIN', true);
    Are you using a domain mapping plugin? If so remove the remote login checkbox. (Has solved problem for me in the past)

  6. That does it for ALL domains though, HuddersfieldH

    I did it on my store - http://halfelf.org/2014/ssl-for-one-domain-on-multisite/ - but it's not as obvious as all that.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.