• Resolved rhythmdoctor

    (@rhythmdoctor)


    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

    (@jkohlbach)

    Hi @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/

    Hope this helps! Let me know how you go.

    Cheers,
    Josh

    Thread Starter rhythmdoctor

    (@rhythmdoctor)

    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.

    Plugin Author Josh Kohlbach

    (@jkohlbach)

    Hi @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/

    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

    (@rhythmdoctor)

    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

    (@jkohlbach)

    Hi @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

    (@rhythmdoctor)

    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

    (@jkohlbach)

    Hi @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

    (@rhythmdoctor)

    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

    (@jkohlbach)

    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.