【发布时间】:2021-12-30 11:31:59
【问题描述】:
我在 Apache 上的设置:
- /var/www/sandbox.example.org/wiki
- 我有一个从http://sandbox.example.org 到 https://sandbox.example.org 的永久重写;有一个http配置文件和一个https配置文件
- 在 Apache 配置文件中:DocumentRoot /var/www/sandbox.example.org/wiki
- 在 Apache 配置文件中:DirectoryIndex index.php
我将 Mediawiki 放在 /var/www/sandbox.example.org/wiki 文件夹中,然后进行了安装。
LocalSettings.php 自动获取:$wgScriptPath = "";
作为浏览器中的 URL,我得到:https://sandbox.example.org/index.php?title=MainPage
我想要的:https://sandbox.example.org/wiki/MainPage
我按照/尝试了https://www.mediawiki.org/wiki/Manual:Short_URL/Apache 上的说明,但没有任何效果。
如何做到这一点?
【问题讨论】:
标签: apache mediawiki short-url