A
A
Aleksandr_Markelov2018-05-28 16:58:02
Nginx
Aleksandr_Markelov, 2018-05-28 16:58:02

What can be the problem when installing on a hosting?

Good afternoon. I have never installed frameworks on normal hostings, and I ran into this problem: I can't launch the usual welcome page from Laravel. Added htacces to the root directory with such data

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

As I understand it, I have a problem with the index.php file, which is in the public? And there it is necessary to register normal paths? It says "Forbidden You don't have permission to access / on this server."
Hosting uses Nginx.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Nagorny, 2018-05-28
@Aleksandr_Markelov

See more here

B
BlackWolf, 2018-05-28
@blacknightwolf

htaccess does not work in Nginx. You need to configure everything in shared hosting, not in htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question