I’m trying to redirect users of my page who aren’t logged in away from a /checkout.html page back to the main index /.
So I created the following _redirects file:
Ofcourse I assumed the dev server would mimic the behaviour. But I also tested the mentioned redirects on a deployment :).
I now have the following deployed:
But now I can’t go to the checkout page even as the user with the correct role. I just get redirected to the index
Edit: Could it be that it takes a while for the redirects to take effect? I tried the same deployment a few minutes later and it seems to work now! Logging out and in breaks it again though. It seems quite unreliable.
It seems to be a caching related problem. Since after a few minutes of being logged in I can access the checkout page again. But right after logging in, I can’t not sure what’s causing that though.
hi there, i know this is mostly resolved, but i wanted to be sure you saw our redirects support guide in case there was anything in there that was helpful to you?