A
A
adam_carraway2018-12-20 23:12:13
htaccess
adam_carraway, 2018-12-20 23:12:13

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

2 answer(s)
A
adam_carraway, 2018-12-20
@adam_carraway

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

G
grinat, 2018-12-20
@grinat

Access locked. Apache does not have rights to read data from this threadcore, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question