saahildcom/public/gh/index.php
zeon-neon[bot] c55d4ac9fc
Some checks failed
publish / publish-docker-image (push) Has been cancelled
Remote Deploy / Build & deploy (push) Has been cancelled
enhancement(lint): Fix lint errors for public/gh/index.php
Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
2025-01-30 23:04:08 +00:00

10 lines
270 B
PHP

<?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);
}
?>