remove html rewrite in favor of MultiViews
Some checks failed
Web/pipeline/head There was a failure building this commit

This commit is contained in:
Ell 2021-03-17 16:23:37 +01:00
parent 33db928a7c
commit 8a5aec6867

View file

@ -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]