Is it possible to resolve a page to it's .html equivalent if someone removes the extension and adds a trailing slash?
http://www.example.com/page.html
http://www.example.com/page/ <-- adding trailing slash resolve to page.html.
However, I want the trailing slash to be optional and not something that I add in htaccess.
RewriteEngine on
# render .php as .html
RewriteRule ^(.*)\.html$ $1.php [nc]
# don't need extension on the end
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^.]+)$ $1.html [NC,L]
# .php to .html
RewriteCond %{THE_REQUEST} \ /(.+)\.php
RewriteRule ^ /%1.html [L,R=301]