Answer the question
In order to leave comments, you need to log in
How to change the base directory of a domain to a subfolder?
Now, in order to load the start page, I need to enter domen.ru/public/ (laravel structure). Is it possible to make the start page load from domen.ru/ . I tried DirectoryIndex public/index.php on htacces, the required page is loaded, but when you go to the links that are on this page, the server gives an error
Answer the question
In order to leave comments, you need to log in
In htaccess
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule ((?s).*) public/$1 [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question