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:
/checkout.html 200! Role=free /checkout.html 200! Role=premium /checkout.html / 401!
but when running
netlify dev I get the following error.
Warnings while parsing _redirects file: 1: /checkout.html 200! Role=free -- undefined 2: /checkout.html 200! Role=premium -- undefined
I’m not sure what’s undefined here?
Help would be greatly appreciated!