<?
if (isset($_GET['page']) && isset($_GET['id']) && file_exists('mods/'.$_GET[id].'/'.$_GET[page].'.php')) {
include 'mods/'.$_GET[id].'/'.$_GET[page].'.php';
}
else {
include("directory/to/file.php");
}
?>
if you make a folder called news and a file in the folder called news.php
and send your browers to
www.yourdomain.com/?id=news&page=news
it includes news.php automatically. dunno if that helps. just includes the files. make as many directorys as you want and everything.
put your folders for other content inside a folder called 'mods'
works pretty well and i search engine friendly urls i do believe.
so if you had a folder called news and a folder called tutorials, the directory would be mods/news or mods/tutorials.