So you would suggest handling in the way that when I use
wget --base=/some/serverdir http://server/serverdir/
"/.*" will be interpreted as "/some/.*" so if you have a link like
"/serverdir/" it would go back to "/some/serverdir", right?

I guess this would be ok. Just one question if there is a Link back to
/serverdir/ and base is something like /my/dir/ shouldn't this also be
fetched from inside /my/dir/ and not /my/serverdir/?

Greetings

Matthias

Josh Williams wrote:
> I realise that this may seem like a sticky situation, but consider
> this solution: Let's say that I have a photo album on my personal
> homepage with the following directory scheme:
> 
> /
> /photos/
> /photos/hawaii
> /photos/concerts
> 
> In /photos/concerts/index.html, I have a link to "/index.html". When
> wget parses the html, it could then become: "../../index.html". All we
> need to know is how many directories deep we are.
> 
> Would this be an acceptable solution? If so, I'd be glad to write a patch.
> 

Reply via email to