We’re trying to make the app redirect to 404 when anyone is trying to reach a URL with ?page=x
in it but only if not a shop page which is meant to be paginated. So there is a rule in our netlify.toml:
[[redirects]]
from = "/*"
to = "/404"
status = 404
force = false
conditions = {Query = ["page"]}
except = ["/shop/*"]
But it doesn’t seem to do anuthing as, say, /about?page=3
still opens. Did we set the rule wrong? Is it achievable in the first place?
If that’s related, we’re using Next.js. The site name is withflitch.