My website is in php. When I open the url without any extension, I want to redirect to its original extension page. Ex: when user types the follwoing url
www.abc.com/contact
I want to redirect to the original page
www.abc.com/contact.html
In htaccess I tried this
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.+)$ $1.html [L,QSA]
But this is not redirecting. It's just removing html.
So question is: how can I redirect to .html pages when user is not typing the file extension?