问题标签 [multiviews]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
32 浏览

apache - 禁用 Apache 多个选项的问题

我一直在修改我的 Apache 服务器配置,并且在多选项页面上遇到了一些问题。如果有人导航到/home它会显示home.php这是所需的功能。我想这样做,以便当有人访问/Home/HOME显示与/home. 在此之前,如果我导航到/Home我得到一个 404。我将以下内容添加到我的apache2.conf

现在,如果我导航到/Home或任何其他变体,除了/home我得到一个多项选择页面,但只有一个选项:home.php. 我希望它只重定向到/home或至少只显示同一页面。