From 3bc32392126e2fb308ef8979adfc37de7e50aa65 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 19 Oct 2019 23:51:06 +0000 Subject: [PATCH] add htaccess to repo --- .htaccess | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..eb94acb --- /dev/null +++ b/.htaccess @@ -0,0 +1,28 @@ +Options -Indexes + +RewriteEngine On +RewriteBase / + +RewriteCond %{REQUEST_FILENAME}.html -f +RewriteRule (.*) $1.html [L] + +RewriteRule ^discord/?$ "https://discord.gg/Uy2ZM9X" [R=301,L] +RewriteRule ^actaddchangelog/?$ "https://github.com/Ellpeck/ActuallyAdditions/blob/master/update/changelog.md" [R=301,L] +RewriteRule ^actadddownload/?$ "https://minecraft.curseforge.com/projects/actually-additions/files" [R=301,L] +RewriteRule ^actaddlicense/?$ "https://github.com/Ellpeck/ActuallyAdditions/blob/master/LICENSE.md" [R=301,L] +RewriteRule ^actadd/?$ "https://minecraft.curseforge.com/projects/actually-additions" [R=301,L] +RewriteRule ^projects/?$ "https://ellpeck.de/#projects" [NE,R=301,L] +RewriteRule ^impressum/?$ "https://ellpeck.de/#impressum" [NE,R=301,L] +RewriteRule ^mc/?$ "https://ellpeck.de/minecraft-stuff" [R=301,L] +RewriteRule ^minecraft-stuff/?$ "https://ellpeck.de/projects" [R=301,L] +RewriteRule ^yt/?$ "https://www.youtube.com/c/ellpeck" [R=301,L] +RewriteRule ^wishlist/?$ "https://www.amazon.de/hz/wishlist/ls/LZO9Y2Z3VJ5Q?&sort=default" [R=301,L] +RewriteRule ^commissions/?$ "https://ellpeck.de/#commissions" [NE,R=301,L] + +ErrorDocument 404 /404.html + + + ExpiresActive On + ExpiresDefault A1 + Header append Cache-Control must-revalidate +