如何在路径中不以index.html开头的情况下使导航工作?

问题描述 投票:0回答:0

我有一个 apache2 Web 服务器,位于

/var/www/html
。端点是
xyz.com
,由大学附属并管理。我的根目录应该是
xyz.com/name
并且由主服务器代理。

当我有:

# index.html
link to href='other.html'
# other.html
link to href='./'

var/www/html
中,仅当用户从
xyz.com/name/index.html
开始时才有效(用户正确路由到
xyz.com/name/other.html
);否则,如果用户从
xyz.com/name
开始,那么他们将被路由到
xyz.com/other.html
(不存在)。

我该如何解决这个问题? (仅首选 HTML + 服务器配置)

html apache web dom server
© www.soinside.com 2019 - 2024. All rights reserved.