Add index.php

This commit is contained in:
2024-07-06 22:02:58 +02:00
parent 18769d468b
commit 62af726099
2 changed files with 18 additions and 1 deletions

View File

@ -1 +0,0 @@
<?php header("Status: 303"); header("Location: https://git.necronda.net/winzer/elwig/src/branch/main/CHANGELOG.md"); header("Content-Length: 0"); exit();

18
www/index.php Normal file
View File

@ -0,0 +1,18 @@
<?php
header("Content-Length: 0");
switch ($_SERVER['PATH_INFO']) {
case '/changelog':
header("Status: 303");
header("Location: https://git.necronda.net/winzer/elwig/src/branch/main/CHANGELOG.md");
break;
case '/vcs':
case '/git':
case '/src':
case '/source':
case '/code':
header("Status: 303");
header("Location: https://git.necronda.net/winzer/");
break;
default:
header("Status: 404");
}