Improve export-to-html recipe

Johan Bengtsson <[email protected]> Thu, 13 Nov 2025 13:38:04 +0000
Newsgroups gmane.comp.web.wiki.pmwiki.user
Message-ID <GVYP280MB0366E45FCD28B4F0BE0CF149CECDA@GVYP280MB0366.SWEP280.PROD.OUTLOOK.COM>
Hi,

I tried https://www.pmwiki.org/wiki/Cookbook/ExportHTML but found that it d=
idn't work so well.

"EnableRobotCloakActions =3D 1; "  caused our wiki to just show an HTTP err=
or 500.

This worked:

wget      --recursive      --level 5      --no-clobber      --page-requisit=
es  -e robots=3Doff --adjust-extension \
     --span-hosts      --convert-links      --restrict-file-names=3Dascii  =
--remote-encoding=3DISO-8859  \
 --domains    ourwiki.portal.se   --no-parent \
  --no-host-directories     --reject-regex '(.*)\?(.*)'  ourwiki.portal.se/=
FooWiki/SomeGroup

The important bit is --reject-regex '(.*)\?(.*)'   which stops downloading =
of action=3D links.


Med v=E4nlig h=E4lsning / Kind Regards
CHALMERS
Johan Bengtsson
Supporttekniker IT | Support Technician IT
Chalmers verksamhetsst=F6d | Chalmers Operations Support
IT-avdelningen | IT Office | IT-support | IT Support
+46(0)31 772 6734
Chalmers tekniska h=F6gskola | Chalmers University of Technology
Chalmers teknikpark / Sven Hultins Gata 9B
SE-412 96
G=F6teborg | Gothenburg
Sverige | Sweden
www.chalmers.se