Answer the question
In order to leave comments, you need to log in
How to setup site root in XAMPP?
The latest version of XAMPP is installed. I put it in the htdocs / [my site] folder. But absolute links from the root of the site do not work
<a href="/index.html">ссылка</a>
<img src="/img/big/1.png">
Answer the question
In order to leave comments, you need to log in
Hi
Root is htdocs. If a site is thrown into htdocs in the form of a directory, for example, mywww, then absolute links in the code must be written:
If you need it to be:
then you need to change the apache config.
With alternatives in Yandex, there are several ...
Denver has not been updated for a long time, so you can forget about it.
In fact, it is very simple, there are many solutions to this problem. In my opinion, the easiest way is as follows: specify the path to the file relative to the root directory:
You can read more here if something is not clear: https://sibsisadmin.ru/xampp-kak-izmenit-kornevuyu...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question