🔍 use 301 to redirect to main domain

This commit is contained in:
DrMaxNix 2023-09-12 13:12:40 +02:00
parent d2c04cee9e
commit 7bc5a264e7
2 changed files with 9 additions and 1 deletions

View File

@ -15,7 +15,7 @@
// ROUTES //
// redirect to main domain
$redirect = [
["path" => "**", "redirect_domain" => "sbgg.jetzt"]
["path" => "**", "target" => "page/redirect"]
];
static::$route["www.sbgg.jetzt"] = $redirect;
static::$route["selbstbestimmungsgesetz-jetzt.de"] = $redirect;

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://sbgg.jetzt");
?>