Web/main/.htaccess

39 lines
1.8 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)
2022-05-21 15:30:57 +02:00
RewriteRule ^blog-(.*)$ "blog/$1" [R=301,L]
RewriteRule ^minecraft-stuff/?$ "projects" [R=301,L]
RewriteRule ^mc/?$ "projects" [R=301,L]
2021-12-01 12:36:28 +01:00
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
2022-05-21 15:30:57 +02:00
RewriteRule ^projects/?$ "#projects" [R=301,L,NE]
RewriteRule ^social/?$ "#social" [R=301,L,NE]
RewriteRule ^about/?$ "#about" [R=301,L,NE]
RewriteRule ^blog/?$ "#blog" [R=301,L,NE]
RewriteRule ^support/?$ "#support" [R=301,L,NE]
RewriteRule ^💸/?$ "#support" [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]
2021-11-24 01:52:25 +01:00
RewriteRule ^actadddownload/?$ "https://www.curseforge.com/minecraft/mc-mods/actually-additions/files" [R=301,L]
RewriteRule ^actaddlicense/?$ "https://github.com/Ellpeck/ActuallyAdditions/blob/main/LICENSE" [R=301,L]
RewriteRule ^actadd/?$ "https://www.curseforge.com/minecraft/mc-mods/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]