{"id":10056,"date":"2023-05-21T23:59:56","date_gmt":"2023-05-22T06:59:56","guid":{"rendered":"https:\/\/www.lee.org\/blog\/?p=10056"},"modified":"2023-06-27T02:23:00","modified_gmt":"2023-06-27T09:23:00","slug":"how-to-convert-a-mediawiki-wiki-and-wordpress-blog-to-static-sites","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2023\/05\/21\/how-to-convert-a-mediawiki-wiki-and-wordpress-blog-to-static-sites\/","title":{"rendered":"How to Convert a Mediawiki wiki and WordPress Blog to Static Sites"},"content":{"rendered":"<p>I recently converted the <a href=\"https:\/\/orbswarm.com\">OrbSWARM Blog and Mediawiki<\/a> to static websites. Here is how I did it.<\/p>\n<p>Download the entire wiki, minus the &#8220;Special&#8221; pages and &#8220;Help&#8221; pages<\/p>\n<blockquote><p>wget -k -p -r -R &#8216;*Special*&#8217; -R &#8216;*Help*&#8217; -E http:\/\/wiki.orbswarm.com\/<\/p><\/blockquote>\n<p>-k &#8211;convert links &#8211; edit each page so the links on it link to the new static site instead of a website<br \/>\n-p &#8211;page-requisites &#8211; fetch all the support files too, like .css and javascript<br \/>\n-r &#8211;recursive &#8211; download the whole site, not just one file<br \/>\n-R &#8211;reject &#8211; don&#8217;t download pages with these names in them<br \/>\n-E &#8211;adjust-extension &#8211; make all files end in &#8220;.html&#8221; <\/p>\n<p>Download the entire WordPress blog<\/p>\n<blockquote><p>wget -k -p -r -E http:\/\/blog.orbswarm.com\/<\/p><\/blockquote>\n<p>Then just upload all those files to a web server!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently converted the OrbSWARM Blog and Mediawiki to static websites. Here is how I did it. Download the entire wiki, minus the &#8220;Special&#8221; pages and &#8220;Help&#8221; pages wget -k -p -r -R &#8216;*Special*&#8217; -R &#8216;*Help*&#8217; -E http:\/\/wiki.orbswarm.com\/ -k &#8211;convert links &#8211; edit each page so the links on it link to the new static [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[],"class_list":["post-10056","post","type-post","status-publish","format-standard","hentry","category-geekery","category-general"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/10056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=10056"}],"version-history":[{"count":3,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/10056\/revisions"}],"predecessor-version":[{"id":10084,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/10056\/revisions\/10084"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=10056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=10056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=10056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}