I would like to use .htaccess to remove the .html extension in the URL and be able to access the URL with or without a trailing slash at the end. Now when I call the page with a slash at the end I get a 500 Internal Server Error
My .htaccess Code:
DirectorySlash Off
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC]
RewriteRule ^ %1 [R,L,NC]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [L]