Improvements to IIS7 Rewriting Code
|Reported by:||bforchhammer||Owned by:||ryan|
|Cc:||ruslany@…, westi, knut@…|
#8974 introduced a set of functions and changes which allow to automatically generate Rewrite Rules for Wordpress installs running on IIS7.
There are some issues with that implementation that I think are worth being written down and discussed somewhere so here we go:
1) There's no "Verbose" option for IIS rules; while I can't say when it would make sense to have a verbose listing of all WordPress rewrite rules in .htaccess/web.config it might be something that should be available for both systems?
2) IIS does not add non wordpress rules ($non_wp_rules) to the web.config file (iis7_url_rewrite_rules()) which means that any custom rewriting which plugins/users can do on apache don't work on IIS.
3) At the moment it's assumed that there is only ONE single rule needed for IIS. Especially when looking at the merge with WPMU this is going to become a problem because WPMU uses multiple rules. Every rule has to have a unique name and functions like iis7_rewrite_rule_exists() and iis7_delete_rewrite_rule() only look for one rule with name "wordpress". Custom Rules (see 2) also won't work without a change here. For a partial fix see misc.php in Patch on MU #991)