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 !

Design copyright www.linuxonlinehelp.com - Linux PC & Server Support