here are the lines that would matter:
$file = $_GET[ 'file' ];
$file = constant( "ABSPATH" ) . constant( "UPLOADS" ) . $file;
if ( !is_file( $file ) ) {
header("HTTP/1.1 404 Not Found");
graceful_fail('404 — File not found.');
}
line 78 giving the error is the one saying: graceful_fail('404 — File not found.');
I solved this one too :-)
I had another closer look at the sitemap.php code of the modified version of the sitemap that is being used/circulated inside these forums and found a strange if clause:
if(get_bloginfo('siteurl') != 'http://zice.ro') {
global $blog_id;
$res = '/var/www/web5/web/wp-content/blogs.dir/' . $blog_id . '/files/';
} else {
$res = '/var/www/web5/web/';
}
return $res;
}
so basically whenever the site that was generating the sitemap.xml was not the main blog the sitemap would be placed inside the /var/www/web5/web/wp-content/blogs.dir/' . $blog_id . '/files/ folder but when the main page generated a sitemap it was just placed inside the root where wpmu was installed.
Take this in combination with drmikes rewrite rule :
RewriteRule ^sitemap.xml /wp-inst/wp-content/blogs.php?file=sitemap.xml [L]
posted here: http://mu.wordpress.org/forums/topic.php?id=1116&replies=33
which would take any request for a sitemap.xml and try and find it inside the /var/www/web5/web/wp-content/blogs.dir/' . $blog_id . '/files/ folder I udnerstand now why I got those error.
Now that I modified that if clause further up, all sitemap.xml files are being put into the "same" structure, only the blogid differs so all is well now :-)