Build a redirect page that accepts the data from the URL via $_GET['page'] and just runs a header function to move the browser to the new page
PHP Code:
<?
$page ='';
//default listing of pages in site to check input and handle attempts to break things
//by messing with the URL
$pages = array('resort','contact','about'...);
(isset($_GET['page']))? $page = $_GET['page'] : $page = "default.php";
if (in_array($page, $pages){
//send to the requested page
header("location:$page.php");
}else{
header("location:default.php");
}//end if
?>
The default.php can be some error handling page where users get sent if they screw things up or change the url
Bookmarks