2){ $_page = "font"; } else { $_page = "our-fonts"; } // /download/### } else if ($paths[1] == "download"){ if (count($paths)>2){ $_page = "download"; } } else { // first level $_page = $paths[1]; } if (!$_page) redirect("404.php"); else redirect($_page.".php"); function redirect($file){ include($file); } ?>