I’m currently using WordPress as a blogging platform but I want to change to use Jekyll to generate the static pages. On WordPress my URLs use the following format:
/year/month/day/title
but I want to redirect that to
/year/month/day/title.html
and I can’t figure out how to do that using mod_rewrite.
Anyone got any ideas?
The above should give you some pointers on how to properly rewrite the URL to the scheme you desire. This example transparently rewrites everything that ends on .html (except actual files) to the same URL without the .html appended to it.
I believe you can just go to Admin → Settings → Permalinks and set the permalinks to custom with a value of:
/%year%/%monthnum%/%day%/%postname%.html