added file to remove .html file endings

This commit is contained in:
malik 2024-01-24 18:34:45 +01:00
parent 6ea090c758
commit 89d53efa5f

6
.htaccess Normal file
View file

@ -0,0 +1,6 @@
#remove html file extension https://example.com/page.html
# to https://example.com/page
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC, L]