From 8a5aec6867255f5b22d133811428d172275d905f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 17 Mar 2021 16:23:37 +0100 Subject: [PATCH] remove html rewrite in favor of MultiViews --- .htaccess | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.htaccess b/.htaccess index 647e36f..e68937e 100644 --- a/.htaccess +++ b/.htaccess @@ -1,13 +1,9 @@ -Options -Indexes +Options +MultiViews -Indexes ErrorDocument 404 /404.html RewriteEngine On RewriteBase / -# redirect from base urls to their .html files -RewriteCond %{REQUEST_FILENAME}.html -f -RewriteRule (.*) $1.html [L] - # legacy redirects (for deleted stuff) RewriteRule ^blog-(.*)$ "https://ellpeck.de/blog/$1" [R=301,L] RewriteRule ^minecraft-stuff/?$ "https://ellpeck.de/projects" [R=301,L]