Answer the question
In order to leave comments, you need to log in
Why does a 403 error appear after re-deploying a project?
I re-deployed the project, after which the site itself began to open with a 404 error, and some image from storage opens via the link. The site itself no longer exists. Even if you run site.ru/index.php or site.ru/robots.txt, it still does not see this file, what could be the reason?
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
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]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
Answer the question
In order to leave comments, you need to log in
As an option: Try to go to the following address: site.ru/public. If the site loads, then you have not correctly set the path to the root directory of the site.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question