Create index.php (#15)

This commit is contained in:
Saahil dutta 2025-01-30 18:04:04 -05:00 committed by GitHub
parent 7a6f27c274
commit e2f0e7ab9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

10
public/gh/index.php Normal file
View file

@ -0,0 +1,10 @@
<?php
$url = $_SERVER['REQUEST_URI'];
$parts = explode('?', $url);
$repo = $parts[1];
if($repo == '') {
header("Location: https://github.com/NeonGamerBot-QK", true, 301);
} else {
header("Location: https://github.com/NeonGamerBot-QK/" . $repo, true, 301);
}
?>