1){ $page = "http://www.wondercomments.com/$cat_url/$w/"; }else{ $page = "http://www.wondercomments.com/$cat_url/"; } header("HTTP/1.1 301 Moved Permanently"); header("Location: $page"); //echo $page; ?>