Answer the question
In order to leave comments, you need to log in
How to make start page a different path in Laravel?
Hello. By default, the start page in Laravel is <domain>/public . How can I make the start page just <domain>?
Answer the question
In order to leave comments, you need to log in
By default, the start page in Laravel is <domain>/public
DocumentRoot /var/www/название_домена.ru/public
This will only happen during the development phase.
It is possible to use localhost:8000
And for what, actually, it is necessary?
Create a .htaccess
file in the root of the site
Content:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question