View Single Post
Old 02-02-2009, 06:54 AM  
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
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");


Last edited by nation-x; 02-02-2009 at 06:58 AM.. Reason: added any value redirect
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote