add redirect

This commit is contained in:
Simon Vieille 2021-04-16 10:06:56 +02:00
parent ba428077fd
commit 7b576c5ae4
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
<?php
if (in_array($_SERVER['SERVER_NAME'], ['deblan.io', 'deblan.tv', 'www.deblan.tv'])) {
header("HTTP/1.0 301 Moved Permanently");
header("Location: https://www.deblan.io".$_SERVER['REQUEST_URI']);
die;
}
use App\Kernel;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;