I think there are several ways of doing this. You could use a scripting language, like PHP to parse the URL path and if it is not the main page which includes the <frameset> then you could redirect it to there, and make the right hand frame load the page you wanted. You might be able to accomplish the same thing tweaking the .htaccess file.
If you decide to go the PHP route, this might get you started. (untested)
index.php
Code:
<frameset>
<frame name="left" src="navmenu.php">
<frame name="left" src="<?=$_GET["page"];?>">
</frameset>
checkframe.php
Code:
<?
if ($_SERVER["PHP_SELF"] !== "/index.php") {
header("Location: http://www.yourdomain.com?page=".$_SERVER["PHP_SELF"]);
}
?>
and at the beginning of every other page:
Code:
<?
include "checkframe.php";
?>
At the very least, this should get some people to give you some better answers.
|