WordPress.org

Support

Support » How-To and Troubleshooting » static html pages for wordpress posts

static html pages for wordpress posts

  • hi, does anyone know of a plugin that will convert posts into static html pages right after publishing the post? for example, it will convert the post to post-name.html and the html file will be served. all comments are disabled and all posts are final so no point of letting the php codes run for every post.
    i tried the wp-cache plugin, but for reason i cant use it on my host and it wont work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Out of curiosity, can I ask why you want to do this? It might help with suggestions.

    Secondly, have you looked at WP Super Cache? It’s a fork of wp-cache, easier to setup and offers static html cache.

    HandySolo: i have over 3,000 posts and wp super cache wont work either, i ried both of them and reinstalled at least 3 times each, and even with a fresh wordpress install it still wont work. My posts are there for ever once they are published, no comments adding or anything, so i just want them to be html files instead of the php files. and my server is crashing since there is so many posts and too many database connections.

    wget -r example.com

    Upload the resulting directory tree to your server.

    You could add a DirectoryIndex rule to your .htaccess to ensure that the html files are accessed rather than the WordPress ones.

    Edit: Just thought of a neat idea. Set up a cron job on your server to start wget from your public_html directory, and have it get example.com itself every day (or however often you post.)

    See here for getting started with wget: http://linuxreviews.org/quicktips/wget/

    sp360 did you ever find an easy plugin to do this? I am looking for something like this myself? To make wordpress pages blog/mypost
    to become blog/mypost.html

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘static html pages for wordpress posts’ is closed to new replies.
Skip to toolbar