Laravel-5.5 PHP 7.0.27 Server: nginx
Hi! Can I configure the .htaccess file so that when I access the project, there is no [public] in the URL. The entry point to Laravel is not the root directory, but the [public] folder and now I have a project that on the real server goes like:
http://my_domen_name/public
I want the site to work on:
http://my_domen_name
On the local machine, when I develop the project, I have access to the server configuration. In configuration file I specify that the project's [public] root is DocumentRoot "my_domen_name / public". Now I do not have access on hosting. Can I do this with my .htaccess? How should the file .htaccess look?
Now my .htaccess looks like this:
<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>