Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#19084 closed defect (bug) (duplicate)

IIS Express multisite rewrite issue.

Reported by: volcanicpixels Owned by:
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
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)

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Fixed in [19018], see #17708.

Thanks for that duck - didn't find that with search.

Note: See TracTickets for help on using tickets.