Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using this plugin to generate HTML files from my database, however, the generated files are put into folders that follows the permalink structure. I'm looking for a different thing, that is to generate html files and put them into 3-level nested subfolders

For example, my post has structure like this http://mysite.com/this-is-something.html, i want the file this-is-something.html to be in the folder /t/h/i/.

Does anyone know how to achieve this?

Thanks for any help

share|improve this question
Is there a practical usage for your request? –  adrian7 Jan 12 '13 at 16:29
add comment

1 Answer

I'm the author of the WP Static HTML Output plugin. First of all, thanks for using it!

In order to achieve what you want, I believe the simplest option may be to alter the permalink structure before exporting (assuming you want the exported structure to be different than the development site's ongoing permalink structure?).

I.e., it sounds like your current permalink structure is /%postname%/

You could adjust this to be /t/h/i/%postname%/ before using the plugin to generate the static pages.

If there is another outcome you are trying to achieve, please add more detail to your question.



share|improve this answer
hi leonstafford. Thank you for your help. What i am trying to do is to nest the html files in the subdirectories that follow the first some letters of the post name, not the fixed /t/h/i/ as in the example. Another example is mysite.com/something.html should be exported to subdirectory /s/o/m. Could you help me with this? –  Pam Apple Aug 4 '12 at 14:31
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.