Hello,
I think it could not be a bug, but for me it looks like one, and I didn't find anything about it in the net, so I i'll descibe it here.
Once wget is running recursively ( -r option ) it should only fecth pages from the same domain of the original page, unless we use the spanning host option ( -H ). But if the server returns a redirect to another domain, wget fetches the page in the "Location" header without checking it.
The problem with this is that I'm getting 404's from another sites, with 302 return code, when I'd like to mirror the site, but use my 404 for unexisting pages.
I took a look at the code, and it seems to be cheking only if the redirected page is descending or not, but I didn't take a good look.. :-)
Hope I helpped, and I could try to fix it, if it is really a bug..
Cheers,
Leonardo Barbosa
