How do I turn redirect conditions to "if not" in netlify.toml

I have a website and I’m trying to create a redirect in case I need to redirect users to the maintenance page and I need developers to still have access to the website. I’m trying to use cookies to disable the redirect to developers but I don’t know-how.

Hi @Erland,

Short answer is, you can’t. There’s no way at the moment to negate redirect rules. But I don’t think you need to negate rules, you could simply do something like:

/* /:splat 200 Cookie=is_dev
/* /index.html 200!

This would work for anyone with cookie is_dev to see the website and would only show the home page to others.