Below is the code that I'm using on a .htaccess page in order to get rid of the ".html" at the end of the URL. It works fine on all pages except for one. Would any of the code on that one page be interfering with this code?
If anyone has any advice on how I'd be able to get rid of the ".html" on the URL using a MAMP server, it'd be much appreciated. Just so you know, I'm using a MAC with version 12.4 of Monterey.
Options +MultiViews
RewriteEngine On
RewriteCond %{THE_REQUEST} \ /(.*)\.html($|\ )
RewriteRule ^ /%1 [L,R=301]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ /$1.html [L]