Page not found upon refreshing?

I have deployed my backend as web hosting and frontend as static website at render. although it is working fine but upon redirection when i try to refresh the page . it shows page not found . how to resolve this issue . is there any suggestions. My project is on MERN Stack(NodeJs environment).

1 Like

Hi,

It sounds like you’re describing client-side routing on a Static Site (e.g. React Router). You’ll need a rewrite for that, covered in the docs here: https://render.com/docs/deploy-create-react-app#using-client-side-routing

Alan

2 Likes

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