[wp-trac] [WordPress Trac] #18988: On install, IIS web.config missing setting for "index.php" as default page type
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 18 17:50:05 UTC 2011
#18988: On install, IIS web.config missing setting for "index.php" as default page
type
-----------------------------+-----------------------------
Reporter: scdetailer | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.2.1
Severity: normal | Keywords:
-----------------------------+-----------------------------
If WordPress is installed in the root directory (e.g., www.example.com) on
a server not pre-configured for PHP, "index.php" will not be a default
page name on the server. This leads to 404 errors when requesting the
homepage (e.g., www.example.com).
A simple fix is to update the web.config for the WordPress install to add
this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile"
negate="true" />
<add input="{REQUEST_FILENAME}"
matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18988>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list