I built a single page web app with react js as the front-end library and laravel 5.8 as the back-end framework. Its now time to host it on a shared hosting service and have not found any clear steps on how to do this successfully with the Routes loading as programmed. Thanks in advance.
Asked
Active
Viewed 874 times
1 Answers
1
Everything will be same as you work on your local server in term of routing and code.
I uploaded my laravel project on the goDaddy shared hosting. Initially the routes are not working because in laravel index.html file exist in public folder and hosting server required index.html file in root folder.
So I used .htaccess file to point root folder to public folder. So that index.html file load.
This workes for me. Hope it works for you too.

Animesh Bhardwaj
- 709
- 4
- 14