Migrating Wordpress to Static
The following command can mirror a whole website including a wordpress into a static html site locally.
# Mirror website to a static copy for local browsing. # This means all links will be changed to point to the local files. # Note --html-extension will convert any CGI, ASP or PHP generated files to HTML (or anything else not .html). wget --mirror -w 2 -p --html-extension --convert-links -P <dir> http://www.yourdomain.com
But this will get a static site with absolute links. To get a site that works as relative links for wordpress, use this plugin in first:
Lei Ma (2015). 'Migrating Wordpress to Static', Datumorphism, 12 April. Available at: https://datumorphism.leima.is/til/programming/migrating-wordpress-to-static-site/.
Table of Contents