0) break; } } fclose($file); if(preg_match("/\t/",$id)){ $id = 0; } Header( "HTTP/1.1 301 Moved Permanently" ); if($id > 0){ Header( "Location: http://www.atmmarketplace.com/products.php?prod_id=$id" ); }else{ Header( "Location: http://www.atmmarketplace.com/" ); } ?>