mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-01 03:10:49 +01:00
33 lines
1.6 KiB
ApacheConf
33 lines
1.6 KiB
ApacheConf
ExpiresActive On
|
|
ExpiresDefault A31536000
|
|
ExpiresByType text/html A600
|
|
ExpiresByType text/css A2592000
|
|
ExpiresByType text/javascript A2592000
|
|
ExpiresByType application/javascript A2592000
|
|
|
|
Options -Indexes
|
|
ErrorDocument 404 /404.html
|
|
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
|
|
# legacy redirects
|
|
RewriteRule ^translate/?$ "https://link.tinylifegame.com/translate" [R=301,L]
|
|
RewriteRule ^raw(/.*)?$ "https://link.tinylifegame.com/raw$1" [R=301,L]
|
|
RewriteRule ^devlogs/(.*)$ "posts/$1" [R=301,L]
|
|
|
|
# anchor redirects
|
|
RewriteRule ^about/?$ "#about" [R=301,L,NE]
|
|
RewriteRule ^social/?$ "#social" [R=301,L,NE]
|
|
RewriteRule ^subscribe/?$ "#subscribe" [R=301,L,NE]
|
|
RewriteRule ^posts/?$ "#posts" [R=301,L,NE]
|
|
RewriteRule ^news/?$ "#posts" [R=301,L,NE]
|
|
RewriteRule ^devlogs/?$ "#devlogs" [R=301,L,NE]
|
|
RewriteRule ^roadmap/?$ "#roadmap" [R=301,L,NE]
|
|
RewriteRule ^community/?$ "#community-showcase" [R=301,L,NE]
|
|
|
|
# bugreport and feedback form replacements
|
|
RewriteCond ?%{QUERY_STRING} "^(?=.*[?&]ver=([^?&]*))?(?=.*[?&]log=([^?&]*))?(?=.*[?&]full=([^?&]*))?(?=.*[?&]os=([^?&]*))?"
|
|
RewriteRule ^feedback "https://link.tinylifegame.com/form?usp=pp_url&entry.1339288296=Give+feedback+(Suggestions,+complaints+etc.)&entry.769753510=%1&entry.476139991=%2&entry.1993358417=%3&entry.88091390=%4" [R=301,L,NE]
|
|
RewriteCond ?%{QUERY_STRING} "^(?=.*[?&]ver=([^?&]*))?(?=.*[?&]log=([^?&]*))?(?=.*[?&]full=([^?&]*))?(?=.*[?&]os=([^?&]*))?"
|
|
RewriteRule ^bugreport "https://link.tinylifegame.com/form?usp=pp_url&entry.1339288296=Report+a+bug+(Crash,+error+notification+in-game+etc.)&entry.769753510=%1&entry.476139991=%2&entry.1993358417=%3&entry.88091390=%4" [R=301,L,NE]
|