So I have a custom created .html page in my website’s root folder (along with WP) and I want to be able to open it in a standard WordPress URL format, in other words without the .html extension at the end.
Bear in mind I know nothing about regular expressions or .htaccess, so I will give you concrete example:
When I type in mydomain.com/specialpage
I want it to load mydomain.com/specialpage.html
, but keep the originally typed URL format (without extension)
This appears to be working. Just had to put it above other default rules WordPress came with.
If you have multiple pages, you can do it like this instead: