[wp-trac] [WordPress Trac] #10425: Improvements to IIS7 Rewriting Code

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 3 20:37:55 UTC 2009


#10425: Improvements to IIS7 Rewriting Code
--------------------------+-------------------------------------------------
 Reporter:  bforchhammer  |       Owner:  ryan          
     Type:  enhancement   |      Status:  new           
 Priority:  low           |   Milestone:  Future Release
Component:  Permalinks    |     Version:  2.8.1         
 Severity:  normal        |    Keywords:                
--------------------------+-------------------------------------------------

Comment(by westi):

 Replying to [comment:7 ruslany]:
 > Are there any core functions in WP that WP Super Cache uses to write
 arbitrary configuration settings into .htaccess file? If there is none
 then I do not think there is a need to add any functions for generic IIS
 config management. As was mentioned already, it should be responsibility
 of the WP Super Cache to write any new config settings into the IIS config
 file.

 WP Super Cache will be using the {{{mod_rewrite_rules}}} filter to add
 extra rules to the .htaccess file.

 For the IIS7 style rewrites we have the {{{iis7_url_rewrite_rules}}}
 filter where SuperCache could add the extra rules.

 As for the Verbose Rules that is a different issue.

 If you look at the {{{WP_Rewrite::mod_rewrite_rules}}} function you will
 see a block or code wrapped in a check for {{{if
 ($this->use_verbose_rules)}}} this code block is triggered if someone
 manually enables it and writes out all the rules as individual mod_rewrite
 rules instead of using the internal rewriter - not sure if this can be
 automated for IIS7?

 Is does look like support for the {{{$non_wp_rules}}} in IIS7 would be
 nice if possible.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10425#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list