TinyLifeWeb/web/.htaccess

34 lines
1.4 KiB
ApacheConf
Raw Permalink Normal View History

2022-01-23 16:06:57 +01:00
ExpiresActive On
ExpiresDefault A31536000
2023-06-01 23:02:09 +02:00
ExpiresByType text/html A600
2024-05-21 16:05:42 +02:00
ExpiresByType text/css A2592000
2022-01-23 16:06:57 +01:00
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
Options -Indexes
2023-01-24 23:11:49 +01:00
ErrorDocument 404 /404.html
RewriteEngine On
RewriteBase /
2022-12-01 17:35:57 +01:00
# legacy redirects
RewriteRule ^translate/?$ "https://link.tinylifegame.com/translate" [R=301,L]
RewriteRule ^raw(/.*)?$ "https://link.tinylifegame.com/raw$1" [R=301,L]
2024-05-21 15:05:07 +02:00
RewriteRule ^devlogs/(.*)$ "posts/$1" [R=301,L]
2022-12-01 17:35:57 +01:00
# anchor redirects
2022-05-21 15:23:16 +02:00
RewriteRule ^about/?$ "#about" [R=301,L,NE]
RewriteRule ^social/?$ "#social" [R=301,L,NE]
RewriteRule ^subscribe/?$ "#subscribe" [R=301,L,NE]
2024-05-21 12:45:00 +02:00
RewriteRule ^posts/?$ "#posts" [R=301,L,NE]
RewriteRule ^news/?$ "#posts" [R=301,L,NE]
2022-05-21 15:23:16 +02:00
RewriteRule ^devlogs/?$ "#devlogs" [R=301,L,NE]
RewriteRule ^roadmap/?$ "#roadmap" [R=301,L,NE]
2024-05-21 12:45:00 +02:00
RewriteRule ^community/?$ "#community-showcase" [R=301,L,NE]
2022-05-21 15:23:16 +02:00
2022-12-01 17:35:57 +01:00
# permanent redirects
RewriteCond %{QUERY_STRING} "(?=.*ver=([^&]*))?(?=.*log=([^&]*))?"
2022-12-01 17:35:57 +01:00
RewriteRule ^feedback "https://link.tinylifegame.com/form?usp=pp_url&entry.769753510=%1&entry.1339288296=Give+feedback+(Suggestions,+complaints+etc.)&entry.476139991=%2" [NE,R=301,L]
RewriteCond %{QUERY_STRING} "(?=.*ver=([^&]*))?(?=.*log=([^&]*))?"
2022-12-01 17:35:57 +01:00
RewriteRule ^bugreport "https://link.tinylifegame.com/form?usp=pp_url&entry.769753510=%1&entry.1339288296=Report+a+bug+(Crash,+error+notification+in-game+etc.)&entry.476139991=%2" [NE,R=301,L]