[wp-trac] [WordPress Trac] #10425: Improvements to IIS7 Rewriting Code
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 16 14:12:09 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:
--------------------------+-------------------------------------------------
#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
[http://trac.mu.wordpress.org/attachment/ticket/991/991-webconfig.patch
Patch on MU #991])
Any comments?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10425>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list