Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Bash script to turn a WordPress install into static HTML.
Shell
Branch: master

Merge pull request #6 from gka/patch-1

fixed reference to $home_url (was $homeurl)
latest commit 27d2391720
@mossiso mossiso authored
Failed to load latest commit information.
ChangeLog updated files with zip option
README updated files with zip option
wpstatic fixed reference to $home_url (was $homeurl)

README

Usage: wpstatic [options]

Run the script in the directory where you keep the wp-config.php file.
This will create a directory with a static version of the WordPress site,
complete with HTML, CSS, Javascript and images or other media files.

-a Skip everything (database backups, and htaccess check), just generate the static files

-b Skip the first backup of database

-d Skip the second backup of database

-h Show help text

-p Skip changing the permalink and closing comments options in the database

-t Skip check for and changing the .htaccess file

-z Make a zip file of the wp-content, .htaccess, and database files.

Something went wrong with that request. Please try again.