Last modified: 2011-10-12 01:16:47 UTC
Upon installing MediaWiki under IIS, the $wgArticlePath option in LocalSettings.php is often set incorrectly to the "pretty URLs". Because of the way PHP works with IIS, this is wrong, and causes a 404 not found error. Proposed solution is to force this option to use the ugly URLs when using IIS. This can be done during install, or manually during execution. Patch will likely follow.
Created attachment 1182 [details] Patch against CVS HEAD OK, the patch improves the detection for php_sapi_name(), and adds "isapi" to the list of cases where ugly URLs will be used. It also made no sense to default to pretty URLs when they might not work, so I altered the default to ugly URLs in unknown cases.
Applied to HEAD, without the redundant strtolower() as discussed on IRC.
*** Bug 1832 has been marked as a duplicate of this bug. ***