Skip to content

Commit e2f0e7a

Browse files
Create index.php (#15)
1 parent 7a6f27c commit e2f0e7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

public/gh/index.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
$url = $_SERVER['REQUEST_URI'];
3+
$parts = explode('?', $url);
4+
$repo = $parts[1];
5+
if($repo == '') {
6+
header("Location: https://github.com/NeonGamerBot-QK", true, 301);
7+
} else {
8+
header("Location: https://github.com/NeonGamerBot-QK/" . $repo, true, 301);
9+
}
10+
?>

0 commit comments

Comments
 (0)