更新时间:2023-02-23 18:10:25
这是因为重写了 url.当 url 为 example.com/home/ 时,apache 认为 /home/ 是一个目录并在所有相关 url 前面附加 /home/.
This is because of the rewritten urls. when the url is example.com/home/ apache thinks /home/ is a directory and appends /home/ in front of all relative urls.
要解决这个问题,您可以在网页的 head 部分添加以下基本标签:
To solve this, You can add the following base tag in head section of your webpage :
<base href="/">