On 7/14/07, Matthias Vill <[EMAIL PROTECTED]> wrote:
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?
Correct.
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/?
Take a look at the directory structure: /my/dir /my/dir/www.foo.bar /my/dir/www.foo.bar/serverdir Suppose we have a link in /my/dir/www.foo.bar/serverdir like this: <a href="/jobs.php">Jobs</a> This link (if called locally) would try to fetch a file on the root directory of the operating system, not the website. It would probably get a 403 or a 404 error. What we would want it to look like is this: <a href="../jobs.php">Jobs</a> This method will work no matter what the --base parameter is.
