How to disable .html on all pages?
How to disable .html on all pages?
Hi
1 - Make a copy of the .htaccess file, And save the copy on your device ( Your PC )
2- With .htaccess under apache you can do the redirect like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]