core/redirect.php

27 lines
587 B
PHP
Raw Permalink Normal View History

2022-12-11 13:55:49 +05:00
<?php
/*редиректы анти сапе */
switch (trim($_SERVER['REQUEST_URI'])) {
case '/?id=8':
header('HTTP/1.1 301 Moved Permanently');
header('Location: /');
break;
2023-01-07 18:55:55 +05:00
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;
2022-12-11 13:55:49 +05:00
default:
}
?>