From b0a6ff527c7cedd964aa1d1f615e1dce4e7ba728 Mon Sep 17 00:00:00 2001 From: Andrea Piombo <4ndre4pb@gmail.com> Date: Thu, 4 Apr 2024 17:17:38 +0200 Subject: [PATCH] Create .htaccess --- .htaccess | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..a3aa8d3 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ +Options +MultiViews +ExpiresActive On +ExpiresDefault A300 +ExpiresByType text/css A3600 +ErrorDocument 404/404.html +RewriteEngine on +RewriteCond %{THE_REQUEST} /([^.]+).html [NC] +RewriteRule .+ /%1 [L,R=301] +RewriteCond %{REQUEST_FILENAME}.html -f +RewriteRule (.*)/?$ /$1.html [L]