Skip to content

Commit

Permalink
Create index.php (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonGamerBot-QK authored Jan 30, 2025
1 parent 7a6f27c commit e2f0e7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions public/gh/index.php
Original file line number Diff line number Diff line change
@@ -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);
}
?>

0 comments on commit e2f0e7a

Please sign in to comment.