Browse Source

add redirect

develop
Simon Vieille 5 months ago
parent
commit
7b576c5ae4
  1. 7
      public/index.php

7
public/index.php

@ -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;

Loading…
Cancel
Save