For the right functioning of PHP frameworks Laravel or Symfony on the hosting it is necessary to edit the root directory of the domain and set the correct path for the directory public.
There are two possible options
- Change of the root directory via WebAdmin
- Edit the .htaccess file
Change of root directory via WebAdmin
Continue to Root directory of the domain and direct the website to the public directory.
Editing of .htaccess file
RewriteEngine On
RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]
RewriteRule ^ %1 [L,NE,R=302]
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]