redirect.php
857 Bytes
<?php
if(isset($_GET['filterID'])){
header("location:http://extremstyle.ua/");
}elseif(isset($_GET['yearID'])){
header("location:http://extremstyle.ua/");
}elseif(isset($_SERVER['REDIRECT_URL']) && $_SERVER['REDIRECT_URL'] == "/item/index.php"){
header("location:http://extremstyle.ua/");
}elseif(isset($_SERVER['REDIRECT_URL']) && $_SERVER['REDIRECT_URL'] == "/catalog/index.php"){
header("location:http://extremstyle.ua/");
}
if(isset($_GET['filter']) && strchr($_SERVER['REQUEST_URI'],'%3B')){
header("location:http://extremstyle.ua" . str_replace('%3B', ";", $_SERVER['REQUEST_URI']) );
}
if(isset($_GET['rubID'],$_GET['search_str'],$_GET['brend']) &&
!$_GET['rubID'] && !$_GET['search_str'] && $_GET['brend']){
header(sprintf("location:http://extremstyle.ua/catalogs/brends/%s/", $_GET['brend']));
}
//print_r($_SERVER);
?>