[wp-trac] [WordPress Trac] #19084: IIS Express multisite rewrite issue.

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 29 15:41:22 UTC 2011


#19084: IIS Express multisite rewrite issue.
----------------------------+-----------------------------
 Reporter:  volcanicpixels  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19084>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list