Manual:Short URL/IIS8.5/en

This article will walk through the settings necessary to get Short URLs working on Windows Server 2012, IIS 8.5, MediaWiki 1.26, and PHP 5.6.

Prerequisite check
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:

Redirect visitor of your domain to your wiki
Our official guides for short url configuration include recommendations on how to point the root of your site to your wiki using your short url config.

To do this in IIS add the following to your.