On 10/6/06, Ryan Barrett <[EMAIL PROTECTED]> wrote:
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.
Not really. My employer has a site with URLs that looks like this: www.domain/pls/education => stuff about free seminars www.domain/pls/education/contact => contact the appropriate dept. www.domain/pls/education/download => seminar information etc so appending /index.html is more appropriate in this case as then we don't need to change URLs within the existing HTML. Maybe this could be called --clean-urls or something? Cheers, Matt. -- Reclaim your digital rights, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d-- s: a- C++++ UL+++ P++ L+++++ E--- W+++ N o-- K w-- O M V- PS+++ PE Y PGP t+ 5 X++ R+ !tv b+++ DI- D++ G-- e* h-- r+ y+++++ ------END GEEK CODE BLOCK------ http://wlazlo.net
