[wpmu-trac] Re: [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
Wed May 20 10:21:27 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        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by bforchhammer):

 * cc: bforchhammer (added)

Comment:

 We found that with the rules above the url `/test/wp-admin` doesn't get
 rewritten to `/test/wp-admin/` as it should...

 It seems that the condition input `{URL}` in rules 2 and 3 wasn't working
 as we expected; it contains `index.php` instead of the actual request url
 `/test/wp-admin`.

 Using `{REQUEST_URI}` instead of `{URL}` seems to fix the problem.

 {{{
                 <rule name="Imported Rule 2" stopProcessing="true">
                     <match url="^(.*/)?files/(.*)" ignoreCase="false" />
                     <conditions logicalGrouping="MatchAll">
                         <add input="{REQUEST_URI}" 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="{REQUEST_URI}" pattern="^.*/wp-admin$"
 ignoreCase="false" />
                     </conditions>
                     <action type="Redirect" url="{R:1}/"
 redirectType="Permanent" />
                 </rule>
 }}}

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


More information about the wpmu-trac mailing list