Hi, I've long had this php include on my site
<?php
$page="home.html";
$content=$GET['x'];
if ($GET['x'] == "") $content = $page;
else $content=$_GET['x'];
include($content);
?>
But, I want to be able to shorten the urls so that I'll have links looking like this index.php?x=home&nav=nav as opposed to the old index.php?x=home.html&nav=nav.php And that right there is my problem... I have includes of several file extensions... .gif,.php,.html,.jpg
So now I need to find that missing line in the following script, which defines what possibilities there are for extensions... I've labeled it $ext as you can see.
<?php
$page="home";
$content=$GET['x'];
if ($GET['x'] == "") $content = $page;
else $content=$_GET['x'];
include("$content.$ext");
?>
Anyone want to help?