Answer the question
In order to leave comments, you need to log in
How to run Laravel 5.8 on regular hosting with Apache server?
Hello! I started to deal with Laravel and all sorts of composers. I made a site and uploaded it to the hosting (on reg), when I go to the site, I get a server error 500. Despite the fact that everything works fine on local hosting.
The .htaccess file contains the following settings:
DirectoryIndex /public/index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+) $1 [L]
RewriteCond %{DOCUMENT_ROOT}/public%{REQUEST_URI} -f
RewriteRule ^(.+) /public/$1 [L]
Options +SymLinksIfOwnerMatch
RewriteRule ^(.*)$ /public/ [QSA,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question