27 lines
587 B
PHP
27 lines
587 B
PHP
<?php
|
|
/*редиректы анти сапе */
|
|
switch (trim($_SERVER['REQUEST_URI'])) {
|
|
|
|
case '/?id=8':
|
|
header('HTTP/1.1 301 Moved Permanently');
|
|
header('Location: /');
|
|
break;
|
|
|
|
|
|
case '/tovar_cat/0.html':
|
|
header('HTTP/1.1 301 Moved Permanently');
|
|
header('Location: /tovar_cat/0-1.html');
|
|
break;
|
|
case '/tovar_cat/':
|
|
header('HTTP/1.1 301 Moved Permanently');
|
|
header('Location: /tovar_cat/0-1.html');
|
|
break;
|
|
|
|
case '/tovar_cat/12':
|
|
header('HTTP/1.1 301 Moved Permanently');
|
|
header('Location: /tovar_cat/12-1.html');
|
|
break;
|
|
|
|
default:
|
|
}
|
|
?>
|