[wpmu-trac] [WordPress MU Trac] #1040: web.config error
WordPress MU Trac
wpmu-trac at lists.automattic.com
Fri Jul 17 18:48:10 UTC 2009
#1040: web.config error
---------------------+------------------------------------------------------
Reporter: frumph | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.8.1
Severity: major | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by frumph):
Replying to [comment:9 bforchhammer]:
> See related ticket #991. I get the same error behavior on our install.
>
> @frump: Removing the first rule breaks it on our system. When we don't
have the rule urls like http://example.com/blog2/wp-admin/ do not work
anymore on our system.
>
> I am not sure where the rest of your changes are exactly (a ''patch''
would be easier to read ;-)); can you test the patch which I added on #991
and see if that fixes it for you?
@jamescollins yes it's still broken
@bforchhammer in iis7_save_url_rewrite_rules() {
{{{
// Using win_is_writable() instead of is_writable() because of a
bug in Windows PHP
// seperating file_exists makes this work right
if ( ! file_exists($web_config_file) ) {
if ( ( win_is_writable($home_path) &&
$wp_rewrite->using_mod_rewrite_permalinks() ) ||
win_is_writable($web_config_file) ) {
if ( iis7_supports_permalinks() ) {
$rule =
$wp_rewrite->iis7_url_rewrite_rules();
if ( ! empty($rule) ) {
return
iis7_add_rewrite_rule($web_config_file, $rule);
} else {
return
iis7_delete_rewrite_rule($web_config_file);
}
}
}
}
return false;
}}}
basically fixes it, the *reason* is that the iis7_add_rewrite_rule will
not loop through the rules to add them to a pre-existing file, the
add_rewrite rule is for a single rule entity only while WPMU has what, 7-9
rules?
Anyways, the only way to make this successfully work is for it to be
'created' from an empty file instead of one that is already in existance
and checking the current rules because of the multiple rulesets.
@bforchhammer your rules are fine, I just don't need to strip the
index.php on mine probably because of the way that I configured my IIS7
server 2008 and php. (p.s. if you havent loaded non-threadsafe php yet,
it's worth it. I see your ticket on the wordpress.org
https://core.trac.wordpress.org/ticket/10425 (they closed mine:
https://core.trac.wordpress.org/ticket/8974 ) and told me to write a WPMU
ticket. which I notice you saw as well heh.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/1040#comment:10>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list