Redirect Loops

Redirect loop in WordPress admin only, not on front end

WordPress depends on a variable, $_SERVER[“HTTPS”] to check if it is on SSL. As a consequence, when this variable is not set, and SSL is forced, WordPress tries to redirect back to http. This causes redirect loops on the back-end only, and not on the front-end.

Really Simple SSL fixes this by adding

$_SERVER["HTTPS"] = "on"

to your wp-config.php.

If you have activated Really Simple SSL, enabled SSL, and still have this issue, there might have gone something wrong with the editing of the wp-config.php file. In that case you could try to insert this manually.

Related Articles

  • Remove .htaccess redirect on site lockout

    When you enable the setting “htaccess redirect” in settings/ssl/settings, Really Simple SSL detects the best redirect, then opens a testpage to verify this option won’t result in redirect loops. Even...
  • Using safe mode

    Migrating to SSL can cause unexpected side effects. When caching is causing redirects, or a plugin redirects back to http, or other such issues, it can be helpfull to activate...
  • Website loads well in Chrome, but gives redirect loop in Safari

    This can be caused by your server configuration, or by the SSL certificate. Read this article  on how to check if it is caused by your certificate. For the server configuration,...
  • when the built in deactivation does not work, manual uninstalling

    Installing SSL can be tricky. If another plugin redirects to http, or your certificate is not valid,  a redirect loop could occur, resulting in a not accessible back-end. This plugin is...

Leave a Comment