Title: Redirect Loop on wp-admin
Last modified: August 30, 2016

---

# Redirect Loop on wp-admin

 *  Resolved [sfocus](https://wordpress.org/support/users/sfocus/)
 * (@sfocus)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-wp-admin/)
 * Hi Rogier, thank you for your help with this.
 * We have our site setup on a subdomain site.siteurl.com, using a wildcard certificate(
   we also have SSL enabled on siteurl.com.) We had a heck of a time getting things
   sorted out on the subdomain, but once enabling your plugin, the frontend of the
   site is now loading securely.
 * However, we are getting redirect loop when accessing the admin.
 * When I enabled the plugin I got the error that there was an issue with our certificate,
   but then I clicked “force SSL anyways”.
 * What can we do to access the admin and fix the redirect loop?
 * Thanks!
 * Ryan
 * [https://wordpress.org/plugins/really-simple-ssl/](https://wordpress.org/plugins/really-simple-ssl/)

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

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-wp-admin/#post-6735499)
 * Hi,
 * As I can’t do any tests, I’d have to guess. My first guess would be that WordPress
   doesn’t recognise your site as being on ssl.
 * If that is the case, you could fix this by adding this to the top of your wp-
   config.php:
    $_SERVER[“HTTPS”] = “on”;
 * This feature is included in the 2.2, which is currently in beta release.
 * Let me know how that works out for you.
 * Rogier
 *  Thread Starter [sfocus](https://wordpress.org/support/users/sfocus/)
 * (@sfocus)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-wp-admin/#post-6735502)
 * Rogier, tears of joy – adding:
 * `$_SERVER["HTTPS"] = "on";`
 * to wp-config has removed the redirect.
 * What do you think is the issue with WordPress recognizing SSL?
 * Thank you for your support!
 * Ryan
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-wp-admin/#post-6735516)
 * Glad to hear it helped.
 * WordPress looks for that variable to check for ssl, so if that variable isn’t
   set, WordPress gets confused. For that reason, in the next update the plugin 
   adds this to the wp-config when ssl is detected, but no server variable is set
   at all.
 * Thanks for the feedback,
 * Rogier

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

The topic ‘Redirect Loop on wp-admin’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/redirect-loop-on-wp-admin/#post-6735516)
 * Status: resolved