[wp-trac] [WordPress Trac] #24963: IIS Multisite, Suspected bug in web.config code for URL Rewrite

WordPress Trac noreply at wordpress.org
Wed Jul 22 14:32:39 UTC 2015


#24963: IIS Multisite, Suspected bug in web.config code for URL Rewrite
----------------------------+-----------------------------
 Reporter:  ShaunLeeClarke  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Rewrite Rules   |     Version:  3.5
 Severity:  normal          |  Resolution:
 Keywords:  needs-testing   |     Focuses:  multisite
----------------------------+-----------------------------

Comment (by WhiteOwlShadow):

 Any progress? It seems that our 4.4.2 (continually updated from 3.x.x - I
 don't remember) now with subfolder multisite and domain mapping enabled
 still suggesting:

 {{{
 <rule name="WordPress Rule 1" stopProcessing="true">
                     <match url="^index\.php$" ignoreCase="false" />
                     <action type="None" />
                 </rule>
                 <rule name="WordPress Rule for Files"
 stopProcessing="true">
                     <match url="^([_0-9a-zA-Z-]+/)?files/(.+)"
 ignoreCase="false" />
                     <action type="Rewrite" url="wp-includes/ms-
 files.php?file={R:1}" appendQueryString="false" />
                 </rule>
                 <rule name="WordPress Rule 2" stopProcessing="true">
                     <match url="^([_0-9a-zA-Z-]+/)?wp-admin$"
 ignoreCase="false" />
                     <action type="Redirect" url="{R:1}wp-admin/"
 redirectType="Permanent" />
                 </rule>
                 <rule name="WordPress Rule 3" stopProcessing="true">
                     <match url="^" ignoreCase="false" />
                     <conditions logicalGrouping="MatchAny">
                         <add input="{REQUEST_FILENAME}" matchType="IsFile"
 ignoreCase="false" />
                         <add input="{REQUEST_FILENAME}"
 matchType="IsDirectory" ignoreCase="false" />
                     </conditions>
                     <action type="None" />
                 </rule>
                 <rule name="WordPress Rule 4" stopProcessing="true">
                     <match url="^([_0-9a-
 zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
                     <action type="Rewrite" url="{R:1}" />
                 </rule>
                 <rule name="WordPress Rule 5" stopProcessing="true">
                     <match url="^([_0-9a-zA-Z-]+/)?([_0-9a-
 zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
                     <action type="Rewrite" url="{R:2}" />
                 </rule>
                 <rule name="WordPress Rule 6" stopProcessing="true">
                     <match url="." ignoreCase="false" />
                     <action type="Rewrite" url="index.php" />
                 </rule>
 }}}


 Rules 1,2,3,6 looks OK, but :
 - there is still "WordPress Rule for Files" ... should it? (maybe yes as
 our multisite was enabled ages ago)
 - 4: there should be <action type="Rewrite" url="{R:2}" /> I think
 - 5: there should be <action type="Rewrite" url="{R:3}" /> I think

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24963#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list