On Thu, 5 Oct 2006, Matt Wlazlo wrote:

I've come up with this patch so that I could mirror my employer's
site, running Oracle Portal (yuk) down to regular old static html.

cool!

  * If the page being saved does not have a dot in it's basename, it
will append "/index.html", thus allowing the original URL naming
scheme without further configuration of the target web server.

does the --html-extension option do what you want? from the man page:

  --html-extension
      If a file of type application/xhtml+xml or text/html is downloaded
      and the URL does not end with the regexp \.[Hh][Tt][Mm][Ll]?, this
      option will cause the suffix .html to be appended to the local
      filename.  This is useful, for instance, when you're mirroring a
      remote site that uses .asp pages, but you want the mirrored pages
      to be viewable on your stock Apache server.  Another good use for
      this is when you're downloading CGI-generated materials.  A URL
      like http://site.com/article.cgi?25 will be saved as arti-
      cle.cgi?25.html.

-Ryan

--
http://snarfed.org/

Reply via email to