Ready to get started?Download WordPress


static html pages for wordpress posts (5 posts)

  1. sp360
    Posted 7 years ago #

    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.

  2. Chris_K
    Posted 7 years ago #

    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.

  3. sp360
    Posted 7 years ago #

    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.

  4. Jonathan Landrum
    Posted 6 years ago #

    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/

  5. mbiernat
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic