Also you could use this too, it will go into your index.php
<?
if ($page == "") $page = "news";
if (!file_exists($page.".php")) $page = "error";
include($page.".php");
?>
if you want it to be ./?view=news then change the "page" with view, simple as

Also, if a page doesnt exist when they try click a link, an error will appear