You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "arthur.chereau" <ar...@voila.fr> on 2002/12/08 01:49:17 UTC

[users@httpd] Browsing local web pages downloaded with wget

Hi,

I keep a local copy of some rapidly changing web pages. For this, I use wget and I
browse the pages locally with apache. Usually everything is fine. But when some URL
contains ? (for php, cgi... scripts) or ~, I can't see them with apache. I need to
replace ? by %3f in the URLs and as wget downloads ~ as %7e I need to replace %7e by ~
in the filenames (or change the URLs).

I found the --html-extension in the wget manual. This partially solves the ? problem,
but I still need to modify the URL . I would like to download the page with wget
<unmodified URL> and then access it via http://localhost/my/local/dir/<unmodified URL>.
By unmodified URL I mean ? is ? and ~ is ~.

I played with apache mime extensions but I couldn't achieve my goal.

Is there a way to tell apache to treat all the files under a certain directory as stock
html files, even if they don't end with .html and contain a question mark ?

How is it possible to tell apache to try to replace ~ by %7e if he doesn't find a file ?
(or how is it possible to tell wget to download a ~ as ~ and not %7e ?)

Thanks !
------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org