Cloudflare Redirect breaking CSS and JS
Hi, I have written a website in Astro that is hosted on Cloudflare Pages. I have written redirect rules related to cookie values and country the visitors is from. The redirect itself works great. But it breaks the site's CSS, JS and image links. Is there a way to make the redirects work and not break the site?
3 Replies
Youd have to share the rule contents, most likely one or more of them is redirecting the assets mistakenly instead of just html pages
Hi, so I used the redirect rules and it has the If Expression and Then Expression Dynamic and status code 302
And the other one has the If expression
Would be gratefule for your help!
@Erisa | Support Engineer can you help?
Can anyone else help?