From 89d53efa5f353b2c1ea25d3fc9d2a3ad88e86ed0 Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 24 Jan 2024 18:34:45 +0100 Subject: [PATCH] added file to remove .html file endings --- .htaccess | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..9062265 --- /dev/null +++ b/.htaccess @@ -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]