Convert WordPress Blog into Static Websites

For some reasons you want to convert your WordPress with Linux Tools into a Static Website:

  • low level Hosting no SQL + PHP
  • for higher Security

Then open a Terminal and enter into a Text Editor:

nano wp2statis.sh:

#!/bin/bash
wget \
      --recursive \
      --no-clobber \
      --page-requisites \
      --html-extension \
      --convert-links \
      --restrict-file-names=windows $url-of-site
exit 0

Advantage?

  • wget runs on most WP-Themes
  • low Load on the convert Process
  • Script can be used to run by Cron automaticly every Night !
Impressum Datenschutz-DSGVO-GDPR

Last Update 08.10.2023 www.linuxonlinehelp.eu - Nonprofit Linux PC & Server Support since 2004 Tags: Linux Online Help, Linuxonlinehelp, Linux Support, Linux Hilfe