Converting WordPress to static html

memrat

Newbie
Joined
Oct 22, 2009
Messages
10
Reaction score
16
Just ran across a blog containing this info and thought it might be useful to somebody (sure this has been asked for before)?

From the site:
Since I had so many WordPress sites to convert into static HTML, I decided to write a nice little bash script for it. This will take care of everything except editing the theme files to take out links to RSS, meta links, or anything else you want removed.

What?s nice about the script is that it grabs the database info from the wp-config.php and autmagically formats the wget command. So basically, it does the following steps for you:

  1. Update the database to close comments on all posts and pages. Update the database permalink structure.
  2. Checks for a .htaccess file and for the correct rewrite code. If it doesn?t exist it creates one. If it exists but doesn?t think the right code is in there, it will append it to the end of the file.
  3. It makes a backup of the database before making the changes, and then again right after.
  4. Reminds you to change the theme files before asking if you would like it to run the wget command.
Ideally, you?ll have edited the theme files before hand, so that you can just run this script, and it will make a static copy of your WordPress blog.
Download Bash script:
Code:
[URL]http://www.mediafire.com/?zqqi2jzzzz4[/URL]
VirusTotal:
Code:
[URL]http://www.virustotal.com/analisis/10d855a2083a594abcea00c46674cfb70f2f719ddc6b95277cb3940e75617504-1266886701[/URL]
I haven't tried this script, and for non Linux users I'm fairly sure Cygwin could be used to run the script (chmod), but again, I'm not sure.

Maybe anybody attempting to use this info could post some feedback?

M.
 
Ahh, rep to original site too:

Code:
[URL]http://historicalwebber.mossiso.com/code/make-wordpress-static[/URL]
There are a couple more pages there where you can see in detail what he has tried to achive and how...

(I'm not affiliated to, or do I know in any way, shape or form who's blog this is. Just thought it may be handy to somebody.)

M.
 
Back
Top