aboutsummaryrefslogtreecommitdiff
path: root/includes/gui
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-12 10:22:32 +0200
committerMinteck <contact@minteck.org>2022-04-12 10:22:32 +0200
commit521a0434bf5ca5dc8c816df13382d2bc0dd8d58d (patch)
tree79ce8624cc4f21526e20d0aff1d937c1c8722aaa /includes/gui
parent5301e9789a87e8e4863c94114ba0f00fb52cab7b (diff)
downloadcloudsdale-521a0434bf5ca5dc8c816df13382d2bc0dd8d58d.tar.gz
cloudsdale-521a0434bf5ca5dc8c816df13382d2bc0dd8d58d.tar.bz2
cloudsdale-521a0434bf5ca5dc8c816df13382d2bc0dd8d58d.zip
Fix issues with my web server
Diffstat (limited to 'includes/gui')
-rw-r--r--includes/gui/header.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/gui/header.php b/includes/gui/header.php
index 82f2ebb..dff6b67 100644
--- a/includes/gui/header.php
+++ b/includes/gui/header.php
@@ -1,3 +1,12 @@
+<?php
+
+if ($_SERVER['HTTP_HOST'] !== "conep.one" && $_SERVER['HTTP_HOST'] !== "www.conep.one") {
+ header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
+ die();
+}
+
+?>
+
<!DOCTYPE html>
<html lang="en">
<head>