Mediawiki隐藏链接中的index.php标识
外观
在mediawiki配置文件中添加
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wiki1.39";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
在apache配置文件中添加(/etc/apache2/sites-available/configfile)
# Enable the rewrite engine
RewriteEngine On
# Short URL for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki1.39/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/wiki1.39/index.php [L]