.htaccess not work

Website URL: http://ender-craft.ga

I created an .htaccess file in the htdocs folder with these rules:

RewriteCond% {REQUEST_FILENAME} .html -f RewriteRule!. * \. Html $% {REQUEST_FILENAME} .html [QSA, L] 

The .htaccess file does not work.

Maybe the htaccess file content should (or may) be this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [QSA,L]

Please note that Apache is sensitive to space positioning, and so the rule you posted before was not valid on that case.


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