有没有办法让页面上的所有链接都是相对于根目录的?
例如,在 www.example.com/fruits/apples/apple.html
上,我可以有一个链接说:
<a href="fruits/index.html">Back to Fruits List</a>
这个链接是指向 www.example.com/fruits/apples/fruits/index.html
还是 www.example.com/fruits/index.html
?如果是第一个,有没有办法让它指向第二个?