Which Extension Code Remover is Better

I have 2 pices of htacces code that “remove” (actually hide) the .html in the address bar. Which is better?

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

B
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html

Thanks,

Chris77

There’s a number of differences between the two.

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