403 Error

https://djtpa.ga/status.html / https://djtpa.ga/status

403 - Forbidden

I am experiencing issues with a lot of my HTML and CSS files at the moment. I have inserted

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

into my .htaccess to remove the need of typing the .html extension every time the user wants to visit my website(s). Unfortunately, this doesn’t work for some HTML files.

Some servers only accept those rules if you allow MultiViews.
Try using this one instead:

Options +MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.