Here's my little clipit of code that I'm writing right now just so you understand what i mean:
I would most likely name the following file index.php, or index.php3, with .htaccess having the DirectoryIndex pointed at one of those two so i could call the page by http://www.domain.com/?location=whatever
<?
// You can also add a tag for authentication to the following pages, such as $authentication=0 for none, $authentication=1 for registered users, and so on. This way you can keep your indexing consistent and at the same time have a way in which a user cannot spoof a cookie or session by simply tagging the url
switch($location) {
case "guestbook":
$title = "My Guestbook";
break;
case "contact":
$title = "Contact Me";
break;
default: // This sets a default location so that if none is supplied php won't fail on an inclusion attempt
$title = "Home";
$location = "home";
break;
}
?>
<HTML>
<HEAD>
<TITLE><?=$title?></TITLE>
</HEAD>
<BODY>
<?
// I like to keep my included files for all the pages in a seperate directory, just practice, not a big deal though
include("inc/" . $location . ".php") or die("File Failed");</HTML>
?>
</BODY>
</HTML>
I've been programming for an internet company on campus at MSU for a year now, and many other companies before that, and have never had any security issues (granted that this is not as safe as using httd authentication), but overall i love this method, and it allows you to get away from having to modify all your pages. you can simply modify the one page and your entire site changes.
Hope this helps, I'd be glad to clarify more on anything or help out with more advanced methods.
It would also be quite simple to migrate this type of page into a database, such as mysql or pgsql.
Cheers!