clients: Move /clients to sync.elwig.at

This commit is contained in:
2025-05-03 16:22:30 +02:00
parent 223c959cd9
commit 25805f0475
6 changed files with 16 additions and 305 deletions

View File

@ -34,10 +34,17 @@ switch ($_SERVER['PATH_INFO']) {
header("Status: 303");
header("Location: https://access.elwig.at/");
break;
case '/clients':
header("Status: 303");
header("Location: https://sync.elwig.at/");
break;
default:
if (str_starts_with($_SERVER['PATH_INFO'], '/access/')) {
header("Status: 308");
header("Location: https://access.elwig.at/" . substr($_SERVER['PATH_INFO'], 8));
} else if (str_starts_with($_SERVER['PATH_INFO'], '/clients/')) {
header("Status: 308");
header("Location: https://sync.elwig.at/" . substr($_SERVER['PATH_INFO'], 9));
} else {
header("Status: 404");
}