I installed XAMPP and created simple website (a folder 'website' in htdocs folder) that contains a link <a href="/info">Info</a>
.
If I type localhost/website
in browser I get a default homepage. But if I click the link, it goes to localhost/info
(which does not exist), instead of localhost/website/info
. I could use <a href="/website/info">
, but it would be weird to refactor all the links when changing site name.
So what is the usual setting or solution that people uses when developing sites in XAMPP?