Skip to content

Commit 5698669

Browse files
committed
Initial Commit (100% functional)
0 parents  commit 5698669

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RewriteEngine On
2+
RewriteCond %{REQUEST_FILENAME} !-f
3+
RewriteCond %{REQUEST_FILENAME} !-d
4+
RewriteRule ^(.*)$ index.php [L,QSA]

index.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
$organization = "MTEXdotDev";
3+
4+
$request = trim($_SERVER['REQUEST_URI'], '/');
5+
6+
if (empty($request)) {
7+
header("Location: https://github.com/" . $organization, true, 302);
8+
exit();
9+
}
10+
11+
header("Location: https://github.com/" . $organization . "/" . $request, true, 302);
12+
exit();

0 commit comments

Comments
 (0)