0

I'm using react router on a basic site. The routes all work on localhost (i.e I can navigate to them naturally using buttons on the site, and also input localhost:3000/route in the browser and both return the correct page fine).

On build and deployment to cpanel I can still navigate to the routes correctly via page navigation (clicking a button on the page that takes me to the new page), however I'm unable to input the address into the address bar in the browser (mywebsite.com/route), this returns a 404.

I'm assuming this is something to do with webpack config, however I'm using create-react-app and so the webpack config is hidden.

Any thoughts would be appreciated.

Thank you

Cal
  • 47
  • 5

0 Answers0