🔀 merge pull request 'v0.1.0' (#1) from dev into main

Reviewed-on: #1
This commit is contained in:
DrMaxNix 2023-11-12 17:37:56 +01:00
commit b6544a2f6e
3 changed files with 36 additions and 0 deletions

21
meta.php Normal file
View File

@ -0,0 +1,21 @@
<?php
// VERSION //
static::$version = "0.1.0";
// DEPENDENCIES //
// used extensions
static::$ext[] = "excuse";
// ROUTES //
// redirect to main domain
static::$route["www.thi-hub.de"] = [
["path" => "**", "target" => "page/redirect"]
];
// pages
static::$route["thi-hub.de"] = [
["path" => "", "target" => "page/start"]
];
?>

8
page/redirect/index.php Normal file
View File

@ -0,0 +1,8 @@
<?php
// REDIRECT TO MAIN DOMAIN //
// status code
header("HTTP/1.1 301 Moved Permanently");
// location
header("Location: https://thi-hub.de");
?>

7
page/start/index.php Normal file
View File

@ -0,0 +1,7 @@
<?php
declare(strict_types = 1);
namespace Kimendisch\Thi_Hub;
use Flake\Excuse;
Excuse::show("service_unavailable");
?>