2
Next I’m using the React-router-dom while I’m serving the project folder as if it’s root works, the routes go to the specific components my problem is when I put in a server:
the front part where the React is placed inside the folder /app and my php scripts that interact with the front on /server.
different when I put the React at the root / it works perfectly.
<Router>
<div>
<a href="./">inicio</a><span> </span>
<a href="./maps">maps</a><span> </span>
<a href="./cadastro">cadastro</a>
<Route path={"/app/maps"} component={TelaMaps} />
<Route path={"/app/cadastro"} component={TelaCadastro} />
</div>
</Router>
Unfortunately I am not using Node, my project is with PHP using stack with APACHE.
– Honório Neto
Put the settings you have
– Alessander França