I followed the tutorial given here : https://auth0.com/blog/role-based-access-control-rbac-and-react-apps/ and it works all fine on localhost. After deployment on a VPS (with Apache2), the callback url doesn't work anymore I get a 404 not found page from the server when I land on http://domainename/callback after authentication. I have taken care of changing the callback url when deploying both in the app and among the authorized callback url from auth0.
I have tried to use an # in the domaine name : http://domainame.com/#/callback but it doesn't work. I have two questions : how to make it works and why does it work on localhost:3000 and not on domainname.com...