Title: Redirect Loop
Last modified: March 1, 2017

---

# Redirect Loop

 *  Resolved [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/)
 * Hello. I installed and activated the plugin, along with creation of a simple 
   page A/B test. All appeared to work properly when logged into wordpress admin
   and played around on the front-end. However, as soon as I logged out of wordpress,
   and attempted to view either page in several browsers, I started seeing a redirect
   loop notice “too many redirects”. Having traced the redirects – it appears that
   what’s happening (assuming two variations – site/page-a/ and site/page-b) is 
   that when I requested one or the other, they were continually redirecting. For
   example:
 * site/page-a/ 302 to site/page-b/
    site/page-b/ 302 to site/page-a/ site/page-
   a/ 302 to site/page-b/ site/page-b/ 302 to site/page-a/
 * and on and on.
 * Do you have any idea what may be causing this issue? Thanks in advance.

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

 *  Plugin Author [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8863464)
 * Hi [@rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/),
 * Sounds like this might be caused by caching. Any chance you could exclude the
   pages involved in the test from cache? If you’re not using a WP caching plugin
   then it could be Varnish server side caching.
 * Can I also check which hosting service you are using? Some like WP Engine don’t
   use native PHP sessions:
 * [https://simplepagetester.com/knowledgebase/simple-page-tester-hosts-support-native-php-sessions/](https://simplepagetester.com/knowledgebase/simple-page-tester-hosts-support-native-php-sessions/)
 * Hope this helps! Let me know how you go.
 * Cheers,
    Josh
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8866234)
 * Thanks for the quick response.
 * No caching plugins but definitely hosting – we’re with WPEngine. So – I guess
   we can’t use the plugin? Please LMK.
    -  This reply was modified 9 years, 2 months ago by [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/).
 *  Plugin Author [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8868677)
 * Hi [@rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/),
 * Yep you can still use it but you’ll need to do two things:
 * 1. Install the plugin noted here: [https://simplepagetester.com/knowledgebase/simple-page-tester-hosts-support-native-php-sessions/](https://simplepagetester.com/knowledgebase/simple-page-tester-hosts-support-native-php-sessions/)
 * 2. Ask WP Engine support to exclude the pages in your test from your Varnish 
   cache. I’m not sure if there is now a tool to do this on your hosting control
   panel maybe?
 * Hope this helps!
 * Cheers,
    Josh
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8879947)
 * Josh
 * Thanks again.
 * Just to confirm – this plugin should be installed in addition to yours, correct?
 * I will reach out to WPEngine and see if that’s something that they’ll support–
   Not sure if they would.
 * Thanks again.
 *  Plugin Author [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8882338)
 * Hi [@rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/),
 * Yep it should be installed in addition to.
 * They’ve done it in the past for other customers of ours, so hopefully shouldn’t
   be a problem 😉
 * Cheers,
    Josh
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8890370)
 * Thanks Josh. Should I try the plugin first, and then reach out to WPEngine if
   it still does not work – or are you certain that I will need to exclude the pages
   in the test from the Varnish cache? Thanks again for such great support.
 *  Plugin Author [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8891487)
 * Hi [@rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/),
 * No worries!
 * You can give it a try but I’m pretty sure it needs both to work properly on production.
   On staging you don’t need to exclude from Varnish because caching isn’t used 
   on staging.
 * Cheers,
    Josh
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8900360)
 * Thanks again. WPEngine helped (they’re great). Going to test soon and will let
   you know if there are any issues. MUCH thanks again.
 *  Plugin Author [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8910313)
 * My absolute pleasure, glad to hear it’s all working!
 * Feel free to reach out anytime.
 * Cheers,
    Josh

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

The topic ‘Redirect Loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-page-tester_677f5d.svg)
 * [Simple Page Tester](https://wordpress.org/plugins/simple-page-tester/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-page-tester/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-page-tester/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-page-tester/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-page-tester/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-page-tester/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/redirect-loop-85/#post-8910313)
 * Status: resolved