I'm running my laravel site in my localhost, works fine. But when I try run my site in hosting server, I got 500 internal server error? Is it because of my .htaccess file or I remove public url ?
My .htaccess file
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Try this on the terminal :
sudo chmod -R 755 <your_laravel_project>
and
chmod -R o+w <your_laravel_project>/storage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With