Im trying to remove the .html from the url so that www.example.com/page.html would be www.example.com/page. I tried using .htaccess with this code :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
My html code is simply : <a href = "page">link</a>
This didn't work as every time I click on the link, an error page shows up