if(!empty($_GET['tag'])) { $tag = htmlspecialchars($_GET['tag']); header("Location: http://forum.allaboutcircuits.com/search/1/?q=$tag", TRUE, 301); } else { header("HTTP/1.0 404 Not Found"); } exit; ?>