put this at the top of your index.php
Certain values
PHP Code:
if (isset($_GET['cat'])) {
switch ($_GET['cat']) {
case 'x':
header("HTTP/1.1 301 Moved Permanently");
header("location: http://www.domain.com");
header("connection: close");
break;
case 'whatever':
header("HTTP/1.1 301 Moved Permanently");
header("location: http://www.domain.com");
header("connection: close");
break;
}
}
Any Value
PHP Code:
if (isset($_GET['cat'])) {
header("HTTP/1.1 301 Moved Permanently");
header("location: http://www.domain.com");
header("connection: close");
}