1

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.

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.