Sign in
Log inSign up

How to place React app on server?

Ghjhh Troöoll's photo
Ghjhh Troöoll
·Jan 23, 2019

I made a React WebShop for testing using a tutorial and wanted to integrate it into my website to test, but unfortunately every time I do so, the app gets messed up. Meaning the links make no sense. For when I type in the url with /Shop (shop is the folder in the server where the app sits) the 404 page, in my case called default component gets displayed. And when I click on the product link it gets me there but as soon as I refresh I'm on the index page of my website instead of the subfolder with the app.

Sorry, but I can't really explain what I mean very well.

Git: github.com/Arborem123/webshop