So I already have my .htaccess file configured so that when I load the webpage (http://example.com/about), it transparently redirects it to http://example.com/about.html, however, I’d like it now to be able to do (http://example.com/about/contact), then have it transparently redirect to http://example.com/about/contact.html. I guess ideally it’d completely ignore the “/about/” part of the URL and only use the contact part.
This is what I’m using right now:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
Use this: