Allow .htm, .html extensions in WordPress without redirect

I am in the process of making a new Wordpress website, starting from an existing WordPress which has a really long history, with a lot of plugins.

The problem I encountered was that the old website had pages that ended with “.htm”. Why would someone bother to have urls that ended with “.htm” extension is way beyond me, but considering that the client wanted to keep those urls the same (“for the moment”), and I didn’t want to add another plugin, I had to find a way to deal with those urls.

Continue reading