D
D
Denis Bukreev2016-10-15 01:03:02
htaccess
Denis Bukreev, 2016-10-15 01:03:02

Is it possible to designate a folder as a root directory?

So it goes.
My examples of work are in subfolders.
Naturally, they are multi-page and their links are written relative to the root ( href="/path").
Then, when you click on such a link, not the layout page of the project opens, but the server tries to find and give the page relative to the root directory, which causes an error.
Maybe you can use .htaccess to make the directory considered the root?
Or, mb, there are other ways?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-10-15
@opium

learn to use relative paths or subdomains already

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question