Search code examples
.htaccesslaravellaravel-4ubuntu-14.04http-status-code-500

Internal Server Error 500 laravel ubuntu14.04


Options -MultiViews

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

what is wrong?


Solution

  • Make sure you've pointed your web server (Apache) to a public directory, not Laravel root directory.

    Also set write permissions on a storage folder:

    chmod -R 775 storage