_redirects 308 permanent redirect issue

For Workers & Pages, what is the name of the domain?

.pages.dev and localhost

What is the issue or error you’re encountering

_redirects rule /* /__spa-fallback.html 200. Right now this rule is creating 308 permanent redirect issue.

What steps have you taken to resolve the issue?

Nothing much I am facing this issue locally and when deployed to cloudflare pages.

What are the steps to reproduce the issue?

Just add a _redirects file with this rule - /* /__spa-fallback.html 200
to spa app and change index.html to __spa-fallback.html
I am working on a react-router-v7 spa+pre-rendered project. Docs link - Pre-Rendering | React Router

Screenshot of the error

Thanks @ares Actually I fixed it by renaming __spa-fallback.html to 404.html

Pages does not support the ! syntax in _redirects.

I’m glad you were able to resolve the issue though @seth18765.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.