1){ $page = "http://publisher.dollarcade.com/$keyss/$w/"; }else{ $page = "http://publisher.dollarcade.com/$keyss/"; } $page = str_replace("_", "-", $page); header("HTTP/1.1 301 Moved Permanently"); header("Location: $page"); ?>