On Monday 10 November 2014 12:03:20 [email protected] wrote: > I'm trying to transfer entire site to a new host, tried several options > including like: > > wget --recursive --no-clobber --page-requisites --no-parent > http://www.domain.tld > > but, all i get was single file as so: > > index.html > ------------------- > <script language="JavaScript"> > <!-- > var sTargetURL = "html/home.htm"; > function doRedirect() > { > setTimeout( "window.location.href = sTargetURL", 1*1000 ); > } > //--> > </script> > <script language="JavaScript1.1"> > <!-- > function doRedirect() > { > window.location.replace( sTargetURL ); > } > doRedirect(); > //--> > </script> > ------------ > > so, I entered the actual domain/path like so > > http://www.domain.tld/html/home.htm > > that seems to work, I got the site, but, question: > > what is the proper way, is there a single command to run with such ? > or, is this javascript, and, wget doesn't do javascript ? > > sorry for dumb question....
Wget simply doesn't support Javascript. -m/--mirror and maybe leave away --page-requisites. Tim
signature.asc
Description: This is a digitally signed message part.
