Web/main/.htaccess

37 lines
1.9 KiB
ApacheConf
Raw Normal View History

2021-07-15 05:25:49 +02:00
ExpiresActive On
ExpiresDefault A31536000
ExpiresByType text/html A600
2021-08-16 00:32:46 +02:00
ExpiresByType text/javascript A2592000
2021-08-16 00:42:35 +02:00
ExpiresByType application/javascript A2592000
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
2021-09-18 00:57:36 +02:00
# anchor redirects
RewriteRule ^projects/?$ "https://ellpeck.de/#projects" [R=301,L,NE]
RewriteRule ^privacy/?$ "https://ellpeck.de/#privacy" [R=301,L,NE]
RewriteRule ^impressum/?$ "https://ellpeck.de/#impressum" [R=301,L,NE]
RewriteRule ^blog/?$ "https://ellpeck.de/#blog" [R=301,L,NE]
2021-03-17 00:23:49 +01:00
# 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]
2021-09-18 00:57:36 +02:00
RewriteRule ^wishlist/?$ "https://www.amazon.de/hz/wishlist/ls/LZO9Y2Z3VJ5Q?&sort=default" [R=301,L,NE]
RewriteRule ^reedsy/?$ "https://blog.reedsy.com/creative-writing-prompts/author/ell-peck/" [R=301,L]
RewriteRule ^sims4gallery/?$ "https://www.ea.com/games/the-sims/the-sims-4/pc/gallery/browse?category=all&searchtype=ea_origin_id&time=all&searchquery=Ellpeck&maxis=false" [R=301,L,NE]