getUrl(true) ); } else if( $_GET['type'] == "browse" ) { $newURL = getURLFromOldSectionId( $_GET['id'], $mysqli ); header( "HTTP/1.1 301 Moved Permanently" ); $url = "http://www.diabeteshealth.com/browse/" . stringToURLItem( $newURL['parentName'] ) . "/"; $url .= stringToURLItem( $newURL['name'] ) . "/"; header( "Location: " . $url ); } exit; ?>