Answer the question
In order to leave comments, you need to log in
Need to configure htaccess laravel?
I made a project on laravel, transferred it to hosting and got the following error:
Forbidden
You don't have permission to access / on this server.
The Internet says that you need to create htaccess at the root, created it, filled it with the following:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Didn't help.
The browser started showing an error:
Page unavailable
Site ********* cannot process this request yet
Maybe you need to configure something in the hosting? How to solve it? Hostman hosting.
Answer the question
In order to leave comments, you need to log in
I am writing an answer. Hosting was installed php5 , changed to php7.2 . created htaccess at the root, filled it with the following:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
And it all worked
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question