Web/.htaccess

33 lines
1.8 KiB
ApacheConf
Raw Normal View History

2021-03-19 04:23:04 +01:00
Header append Cache-Control max-age=31536000
Options +MultiViews -Indexes
2021-03-17 00:23:49 +01:00
ErrorDocument 404 /404.html
2019-10-20 01:51:06 +02:00
RewriteEngine On
RewriteBase /
2021-03-17 00:23:49 +01:00
# 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]
RewriteRule ^mc/?$ "https://ellpeck.de/projects" [R=301,L]
RewriteRule ^press/?(.*)$ "https://press.ellpeck.de/$1" [R=301,L]
RewriteRule ^tinylife/?$ "https://tinylifegame.com" [R=301,L]
2021-07-07 15:35:38 +02:00
RewriteRule ^foefrenzy/?$ "https://store.steampowered.com/app/1194170/" [R=301,L]
2021-03-17 00:23:49 +01:00
# anchor redirects (need NE = no escaping for the hash symbol)
RewriteRule ^projects/?$ "https://ellpeck.de/#projects" [NE,R=301,L]
RewriteRule ^privacy/?$ "https://ellpeck.de/#privacy" [NE,R=301,L]
RewriteRule ^impressum/?$ "https://ellpeck.de/#impressum" [NE,R=301,L]
RewriteRule ^blog/?$ "https://ellpeck.de/#blog" [NE,R=301,L]
# actually additions redirects
RewriteRule ^actaddchangelog/?$ "https://github.com/Ellpeck/ActuallyAdditions/blob/main/update/changelog.md" [R=301,L]
2019-10-20 01:51:06 +02:00
RewriteRule ^actadddownload/?$ "https://minecraft.curseforge.com/projects/actually-additions/files" [R=301,L]
RewriteRule ^actaddlicense/?$ "https://github.com/Ellpeck/ActuallyAdditions/blob/main/LICENSE.md" [R=301,L]
2019-10-20 01:51:06 +02:00
RewriteRule ^actadd/?$ "https://minecraft.curseforge.com/projects/actually-additions" [R=301,L]
2021-03-17 00:23:49 +01:00
# other permanent redirects
RewriteRule ^discord/?$ "https://discord.gg/Uy2ZM9X" [R=301,L]
2019-10-20 01:51:06 +02:00
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]
2021-03-26 04:53:17 +01:00
RewriteRule ^fftranslate/?$ "https://poeditor.com/join/project/ElzC23ecB6" [R=301,L]
RewriteRule ^reedsy/?$ "https://blog.reedsy.com/creative-writing-prompts/author/ell-peck/" [R=301,L]