500 Internal Error when publishing laravel in hostinger
I uploaded the laravel app outside of public_html in my project folder as per their knowledgebase tutorial and updated the .htaccess and index.php URLs and I've cleared all of my cache many times. I've also ran php artisan route:cache to no avail. My main site.com index page works (home page) which is served by laravel, but if I click on any of the links to visit a different page, I get 500 Internal Server Error... I don't really know what to do to fix it.
@jaiveersinghchavda I've tried all that, no errors show and laravel.log is empty yet 500 internal server error for every page except for the home page.
@shariff I've started off with laravel 10.x and since than being updating it VIA composer. I don't have server.php (at least I can't find it... don't know where it should be) and my index file is:
'project' is the laravel project folder where the laravel application is (located in the parent directory of 'public_html') and the contents of 'public' is in 'public_html'.
The home page works, but any other link throws an error 500
I fixed the issue. Hostinger's Knowledgebase told me to add a rewrite rule to .htaccess that I shouldn't have. Reverting the .htaccess back to the original laravel's .htaccess and clearing all cookies and cache fixed the issue.