Opened 16 years ago
Closed 16 years ago
#13679 closed defect (bug) (fixed)
The URL rewrite rules generated by WordPress for IIS 7 are malformed and cause server errors
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Rewrite Rules | Keywords: | has-patch patch-tested |
| Focuses: | Cc: |
Description
When configuring pretty permalinks on IIS 7 and the iis config file web.config does not exist then WordPress auto-generates the following xml configuration:
configuration>
<system.webServer>
<rewrite>
<rules>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
This is a malformed XML and when user puts it into the web.config file it results in IIS generating server error HTTP 500.
Also, the XML indentation is broken.
This seems to be a regression as it worked fine in WordPress 2.9.X.
Attachments (3)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Seems to me that rules were accidentally not removed from
!is_multisiteconditional in r14871. The indenting seems to be like that after cleaning up the code :( r1488513679.diff should hopefully help with the malformed XML, but does nothing about indenting.
X-ref #12758