id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 45970 "in IIS if web.confing section and the site craches with wrong web.config" boychev "in IIS if web.confing section and the site craches with wrong web.config error (2 sections). It happens/triggers by example if you are trying to change the ""Permalink Settings"". The code responsible for this check is located in \wp-admin\includes\misc.php (line 748) {{{ // First check if the rule already exists as in that case there is no need to re-add it $wordpress_rules = $xpath->query('/configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'wordpress\')] | /configuration/system.webServer/rewrite/rules/rule[starts-with(@name,\'WordPress\')]'); if ( $wordpress_rules->length > 0 ) return true; }}} The fix could be to register the namespace: {{{ $xpath->registerNamespace(""x"", ""http://schemas.microsoft.com/.NetConfiguration/v2.0""); }}} and then in `$xpath->query` to check also for `/x:configuration/x:system.webServer/x:rewrite/x:rules/x:rule[starts-with(@name,\'WordPress\')]` In this way it works without problem and does not break the site." defect (bug) new normal Awaiting Review Rewrite Rules 5.0.3 normal needs-patch administration