Well in the main.php page you might have.
PHP Code:
if (isset($_GET['id']))
{
if (file_exists("./pages/{$_GET['id']}.php"))
{
include "./pages/{$_GET['id']}.php";
}
else
{
include "./pages/404.php";
}
}
else
{
include "./pages/home.php";
}
and then you'll store all your files in a folder called "content" and then when someone goes to main.php?id=content it'll check if the id is set if so check if file exists if it doesn't get a 404 (file doesn't exist) page that you'll create and if it is pull the page. As for no id is set (assuming someone game directly to main.php) get home page.