How to define custom links in WordPress

Sorry for incomplete answer,
Use the 301 redirects.
This link give an idea about redirects https://moz.com/learn/seo/redirection

https://wordpress.org/plugins/simple-301-redirects/

For the wordpres there are free good plugins for add html / htm extension to urls.

This for – “.html
https://wordpress.org/plugins/html-in-url/

I think you can edit it and change it to “.htm

If you dont want to use plugins,follow this and change it according to your requirement,

http://carlofontanos.com/add-html-extension-to-permalinks/