I was having trouble with being unable to log out the 'admin' user when using non-vhost. I'm wondering if this is due to a *possible* bug.
In the wp-settings file you have these lines:
if( $base == '/' ) {
$wpblog = substr( $_SERVER[ 'REQUEST_URI' ], 1 );
} else {
$wpblog = str_replace( $base, '', $_SERVER[ 'REQUEST_URI' ] );
}
BUT REQUEST_URI will include any query string as far as I can see for cases where the mod_rewrite doesn't kick in (logout for example).
I think if we use this instead we get the same result but minus the query string, which I don't think is ever needed here:
if( $base == '/' ) {
$wpblog = substr( $_SERVER[ 'SCRIPT_URL' ], 1 );
} else {
$wpblog = str_replace( $base, '', $_SERVER[ 'SCRIPT_URL' ] );
}
I haven't tested this so I may be way off :-)