Cloudflare pages URL Exclude

Hello,

I have a Cloudflare page
https://emaanpainters.co.nz/

My images are folder are
https://emaanpainters.co.nz/images
My sitemap is
https://emaanpainters.co.nz/sitemap.xml

At the moment if a user enters
https://emaanpainters.co.nz/blahblah
It stills shows the main page. It should show not found page or something.

I want to disable all links or forward to root “https://emaanpainters.co.nz/” which are not valid. Images link and sitemap.xml should still work

Thanks .

If you add a 404.html to the root we will disable SPA mode (what you’re seeing here)

Refer to: https://developers.cloudflare.com/pages/platform/serving-pages/#not-found-behavior

5 Likes

Will get back to you on this one . once i try it . thank WalshyMVP the man . Appreciate…PHEWWWW!

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