access: Move /access to access.elwig.at
This commit is contained in:
1 parent
4962218fe3
commit
223c959cd9
9 files changed
+53
-950
No files matched your search
+10
-1
@@ -30,6 +30,15 @@ switch ($_SERVER['PATH_INFO']) {
|
||||
header("Status: 303");
|
||||
header("Location: https://git.necronda.net/winzer/");
|
||||
break;
|
||||
case '/access':
|
||||
header("Status: 303");
|
||||
header("Location: https://access.elwig.at/");
|
||||
break;
|
||||
default:
|
||||
header("Status: 404");
|
||||
if (str_starts_with($_SERVER['PATH_INFO'], '/access/')) {
|
||||
header("Status: 308");
|
||||
header("Location: https://access.elwig.at/" . substr($_SERVER['PATH_INFO'], 8));
|
||||
} else {
|
||||
header("Status: 404");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user