mirror of
https://github.com/tiennm99/loto.git
synced 2026-07-31 04:24:11 +00:00
The previous rule "/* / 301" matched / itself even though docs say static assets take precedence — empirically CF still bounced and caused ERR_TOO_MANY_REDIRECTS on loto.miti99.com. Replace with two safer rules: /master* / 301 (true URL redirect for the known orphan) /* /index.html 200 (SPA fallback — URL stays, homepage shows) The 200 rewrite cannot create a redirect loop. Static assets at /, /_app/*, /favicon.* are served before rules fire.