Answer the question
In order to leave comments, you need to log in
How to fix Apache not redirecting requests to Laravel public/index.php?
Already asked a question today, but I could understand what the problem was, though I did not find a solution.
There is a domain like mydomain.com
On the hosting in the folder www/mydomain.com/social there is a project written in Laravel. If you open the main page mydomain.com/social/public - then there are no problems.
But there was a problem that Apache does not redirect requests like mydomain.com/social/public/register to the index.php file and therefore it does not find anything and gives an error:
The requested URL /social/public/register was not found on this server.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [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