Manual:Short URL/IIS8.5/zh

在 Windows Server 2012 + IIS 8.5 + PHP 5.6 环境下对 Mediawiki 1.26 进行短网址设置.

必要条件
Ensure that your MediaWiki site is running and accessible at a URL other than. For this example, we will assume it's running at. This means that you can browse, edit articles, etc. on your wiki by starting with  http://www.mysite.com/w/index.php?title=Main_Page .

Modify LocalSettings.php
Edit the appropriate path configurations in your LocalSettings.php file:

Create a rewrite rule
Create or edit the  file in the site root directory, usually   (not under  ). Ensure it contains the following: