-1

I have just tried to deploy a my Laravel app to a shared hosting and it seems like the .htaccess is causing an internal server error, if I delete it all the files in /public can be accessed. I have checked several of the other answers here, but no one solved the problem. I have checked all the required modules

  • Have you changed your file permissions? https://stackoverflow.com/questions/30639174/how-to-set-up-file-permissions-for-laravel. Also, here is some configuration documentation. https://laravel.com/docs/5.0/configuration –  Jun 10 '20 at 21:21

2 Answers2

0

When deploying your app to a shared hosting, make sure that your domain or subdomain is pointing to the public folder in your laravel application. When asked for the document root path point it to Eg.

/public_html/laravel_project/public

Try that to see if you are still facing issues

macleash
  • 102
  • 3
0

I finally looked into the hosting service's docs and in their examples it's RewriteRule ^ /index.php [L] with a trailing slash instead of just RewriteRule ^ index.php [L] Don't know why but that made the difference and now works both on my localhost and the deployment host.