[wpmu-trac] [WordPress MU Trac] #991: IIS 7.0 URL Rewriting

WordPress MU Trac wpmu-trac at lists.automattic.com
Tue Jul 14 10:29:49 UTC 2009


#991: IIS 7.0 URL Rewriting
--------------------------+-------------------------------------------------
 Reporter:  bforchhammer  |        Owner:  donncha 
     Type:  defect        |       Status:  assigned
 Priority:  normal        |    Milestone:  2.8.1   
Component:  General       |      Version:  2.8.1   
 Severity:  normal        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by bforchhammer):

 I've just tested the rewrite rules with the 2.8.1 release and every time I
 visit the permalinks settings page (`/wp-admin/options-permalink.php`) the
 blog breaks because the rewrite rules get added to `web.config` a second
 time. (The same block of rules just gets appended to the end of the
 `<rules>` section.

 It looks like `iis7_rewrite_rule_exists()` and
 `iis7_delete_rewrite_rule()` are broken. These functions check for rules
 named "wordpress" but the rules we're using here have names like "Imported
 Rule #1".

 1) The rules should probably be renamed to e.g. "wordpress-1" or more
 descriptive "wordpress - Strip index.php". Each rule has to have a unique
 name.

 2) Because we have multiple rules the functions mentioned above need to be
 adjusted to look for multiple rules where the name attribute starts with
 "wordpress", and they need to work with more than one rule (delete
 function seems to only delete "the first rule found").

 The rules themselves work fine on our test box.

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


More information about the wpmu-trac mailing list