remove html rewrite in favor of MultiViews
Some checks failed
Web/pipeline/head There was a failure building this commit
Some checks failed
Web/pipeline/head There was a failure building this commit
This commit is contained in:
parent
33db928a7c
commit
8a5aec6867
1 changed files with 1 additions and 5 deletions
|
@ -1,13 +1,9 @@
|
||||||
Options -Indexes
|
Options +MultiViews -Indexes
|
||||||
ErrorDocument 404 /404.html
|
ErrorDocument 404 /404.html
|
||||||
|
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteBase /
|
RewriteBase /
|
||||||
|
|
||||||
# redirect from base urls to their .html files
|
|
||||||
RewriteCond %{REQUEST_FILENAME}.html -f
|
|
||||||
RewriteRule (.*) $1.html [L]
|
|
||||||
|
|
||||||
# legacy redirects (for deleted stuff)
|
# legacy redirects (for deleted stuff)
|
||||||
RewriteRule ^blog-(.*)$ "https://ellpeck.de/blog/$1" [R=301,L]
|
RewriteRule ^blog-(.*)$ "https://ellpeck.de/blog/$1" [R=301,L]
|
||||||
RewriteRule ^minecraft-stuff/?$ "https://ellpeck.de/projects" [R=301,L]
|
RewriteRule ^minecraft-stuff/?$ "https://ellpeck.de/projects" [R=301,L]
|
||||||
|
|
Loading…
Reference in a new issue