summaryrefslogtreecommitdiff
path: root/public/wiki.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/wiki.php')
-rw-r--r--public/wiki.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/wiki.php b/public/wiki.php
index b87405f..1f99be9 100644
--- a/public/wiki.php
+++ b/public/wiki.php
@@ -3,6 +3,11 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/../vendor/autoload.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/../config.php';
+if (str_starts_with(WIKI_PAGE_DIRECTORY, "http")) {
+ header("Location: " . WIKI_PAGE_DIRECTORY);
+ exit;
+}
+
$page_id = $_GET['p'] ?? 'README';
$page_name = "$page_id.md";