🎉 flake init

This commit is contained in:
DrMaxNix 2023-11-12 17:35:17 +01:00
parent a20673f7b6
commit 7ba09e3869
3 changed files with 36 additions and 0 deletions

21
meta.php Normal file
View File

@ -0,0 +1,21 @@
<?php
// VERSION //
static::$version = "1.0.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");
?>