[wp-trac] [WordPress Trac] #25194: Filtered IIS rewrite rules not added to web.config

WordPress Trac noreply at wordpress.org
Fri Aug 30 16:13:21 UTC 2013


#25194: Filtered IIS rewrite rules not added to web.config
--------------------------+-----------------------------
 Reporter:  pat@…         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  IIS           |    Version:  3.6
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If using IIS and web.config, appending rules via the filter
 'iis7_url_rewrite_rules' will not add the filtered content if a rule for
 'wordpress' already exists in the web.config file.

 Expected behavior:
   Even after WP has added its rule to web.config we should be able to
 influence the rules content in the web.config via the filter.

 Steps to reproduce:
   1. Use a system running IIS that supports rewriting in the web.config
   2. Visit permalinks page so WP generates the 'wordpress' rule in the
 web.config
   3. Add a filter to 'iis7_url_rewrite_rules' and append the following
 rule: '<rule name="testrule" stopProcessing="true"><match
 url="readme.html"/><action type="Rewrite" url="foo.html"/></rule>'
   4. Visit the permalinks page
   5. Rule will not be appended to web.config file

 Correct behavior:
   1. Repeat steps 1-3 above
   4. Remove the 'wordpress' rule from web.config file
   5. Visit permalinks page
   6. Filtered rule text will be present in this case

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25194>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list