summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index 149aa57..e3afcf7 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,5 +1,14 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php';
+
+$url = parse_url($_SERVER['REQUEST_URI']);
+
+if (strlen($url['path']) > 2 && str_starts_with($url['path'], '/!')) {
+ $page_id = substr($url['path'], 2);
+ header("Location: /wiki.php?p=$page_id");
+ exit();
+}
+
?>
<html>
@@ -27,7 +36,7 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php';
A multi-utility Twitch chat bot that brings<br>
a lot of functionality into your chat.
</p>
- <a href="#" class="self-end">
+ <a href="/!join" class="self-end">
<button>Get the bot</button>
</a>
</div>