#19084 closed defect (bug) (duplicate)
IIS Express multisite rewrite issue.
Reported by: | volcanicpixels | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Hi,
I am using the IIS Express which is bundled with WebMatrix 2 beta and have attempted to setup a multisite installation. It would appear that the rewrite rules are not correctly being parsed.
<rule name="WordPress Rule 5" stopProcessing="true"> <match url="^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)" ignoreCase="false" /> <action type="Rewrite" url="{R:2}" /> </rule>
Looks correct, however, unlike one would expect: rather than rewrite http://domain/blahblah/wp-admin/ to http://domain/wp-admin/ it actually rewrites it to http://domain/admin. I appreciate that this is a bug with IIS Express and not WordPress but by changing the rewrite rule to:
<rule name="WordPress Rule 5" stopProcessing="true"> <match url="^[_0-9a-zA-Z-]+/((wp-content|wp-admin|wp-includes).*)" ignoreCase="false" /> <action type="Rewrite" url="{R:2}" /> </rule>
it would work with IIS Express.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Fixed in [19018], see #17708.