.htaccess
RewriteEngine on
RewriteRule ^(.*html)$ index.php?page=$1 [QSA,L]
index.php
<?
if (empty($_GET['page'])) $_GET['page']="index.html";
$PAGE = basename($_GET['page']);
if (!is_readable($PAGE)) {
header("HTTP/1.0 404 Not Found");
$PAGE = "404.html";
}
include("template.html");
?>
template.html
<html>
<table>
<tr>
<td width=200>
<a href = "/">Main</a><br>
<a href = "photo.html">Photos</a><br>
</td>
<td width=600>
<? include $PAGE ?>
</td>
</tr>
<table>
</html>
404.html
Sorry, page not found