I suppose you probably use Apache as server. Check the file .htaccess in the root of your project is uploaded to your server. If it was uploaded then please post the content of that file here.
I don’t see directly anything wrong, do the rewrites work when you use the urls in the browser? So does the problem only exist when you refresh the page?
When the direct url also is not working then it is definitely something with the htaccess file. Double check if the file was indeed uploaded to your server. Are you sure that your host is running apache on the server, for IIS we generate a different routing file and nginx isn’t supported.