Trying to remove .html extensions from a site using .htaccess. So for example: www.mysite.com/charts.html will become www.mysite.com/charts
The following script file is in the .htaccess file:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\.html$ /$1 [L,R=301]
But when the URL containing the .html extension is entered in the browser, it shows a 403 Forbidden error. Any help would be appreciated.
source share