How do I specify a sub-route for which I do not want SPA fallback to index.html?
On these docs: https://developers.cloudflare.com/pages/platform/serving-pages/
it says that 404 pages fallback to the index.html with a 200 status.
Is there a file I can upload with my site that tells cloudflare to 404 for certain paths when pages aren't found?
For example, in any sub-route under
/docs/
I want no fallback behavior, and 404s to be realServing Pages · Cloudflare Pages docs
Cloudflare Pages includes a number of defaults for serving your Pages sites. This page details some of those decisions, so you can understand how …
3 Replies
If you add a 404.html in the docs folder, that should accomplish what you want I think
Thanks! That did it!
Awesome!