Invalid urls are getting redirected to home page (index.html)

When we try to access invalid url in worker/pages, It is redirecting to home page. It is not showing 404 error. How do we fix it?

Hi there,

This comes down to your code.
Please take a look at your cdnsttool or cdnexcel for instance. It’s not redirecting on 404:
Screenshot 2024-05-22 at 10.37.14


Screenshot 2024-05-22 at 10.37.48

Compare them and try to apply the same principle to the page that it’s not behaving like this.

Take care.

1 Like

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