htaccess to resolve a trailing slash to .html page
<p>Is it possible to resolve a page to it's .html equivalent if someone removes the extension and adds a trailing slash?</p>

<p><a href="http://www.example.com/page.html" rel="nofollow">http://www.example.com/page.html</a></p>

<p><a href="http://www.example.com/page/" rel="nofollow">http://www.example.com/page/</a> <strong>&lt;-- adding trailing slash</strong>  resolve to page.html.  </p>

<p>However, I want the trailing slash to be optional and not something that I add in htaccess.</p>

<pre><code>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]
</code></pre>