Derniere solution pour ce soir après vais au lit :
Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
<?php
#####!!!#####
-
//Redirection module jeu
if (preg_match('/^jeux_flash./', $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) == 1) {
$URL = 'jeux.beziers-info.com/index.php';
-
header('HTTP/1.1 301 Moved Permanently');
header('Location:' . (($_SERVER["HTTPS"] == 'on')?'https://':'http://') . $URL);
exit();
}
-
#####!!!#####
?>
Autre possibilité mais j'y crois moins :
Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
<?php
#####!!!#####
-
$url2 = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if($url=='/index.php' OR $url2 == 'www.tonsite.fr/index.php?mod=jeux_flash') {
$URL = 'jeux.beziers-info.com/index.php';
-
header('HTTP/1.1 301 Moved Permanently');
header('Location:' . (($_SERVER["HTTPS"] == 'on')?'https://':'http://') . $URL);
exit();
}
-
#####!!!#####
?>
Sinon je vois ça demain, là trop hs