[wpmu-trac] [WordPress MU Trac] #991: WordPress permalinks settings page should work with IIS 7.0 URL Rewrite Module

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon May 18 09:54:47 GMT 2009


#991: WordPress permalinks settings page should work with IIS 7.0 URL Rewrite
Module
--------------------------+-------------------------------------------------
 Reporter:  bforchhammer  |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:  2.8     
Component:  component1    |     Version:  2.8     
 Severity:  normal        |    Keywords:          
--------------------------+-------------------------------------------------
 Singleuser has received a patch for the IIS 7.0 URL Rewrite Module
 ([http://core.trac.wordpress.org/ticket/8974 Ticket #8974],
 [http://core.trac.wordpress.org/changeset/11350 Changeset 11350])

 MU uses a few more rules. We just set up a install of MU 2.7.1 last week
 and had to work through them... These are the rules we're using now:

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

 Especially Rule 1 gave us some headaches... I am hoping that this will
 help when this feature is added to MU.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/991>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list