0) { header('Location: /ref/' . urlencode($q)); } else { header('Location: /man.html'); } } else { header('Location: /man.html'); } ?>