L
L
Leonardo-lavanda2020-02-12 17:47:47
Apache HTTP Server
Leonardo-lavanda, 2020-02-12 17:47:47

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 error5e440fdca000c530623356.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kokhan, 2020-02-12
@SkazochNick

In htaccess
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule ((?s).*) public/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question