On all the pages of my website I've placed the following code:
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
function detect()
{
framesetpage="index.htm";
thispage=window.location.href;
if (thispage.indexOf('://')<0) {thispage="://"+thispage;};
prefix=thispage.substring(0,thispage.lastIndexOf('://'));
suffix=thispage.substring(thispage.lastIndexOf('://')+2,thispage.length);
if (parent.location.href==window.location.href) {
parent.location.href=framesetpage+"?"+prefix+"&&&"+suffix};
}
</script>
Thereby, people who find a page of my site by searching a searchengine (Google, Yahoo...) wil be redirected to my indexpage.
Now I would like this to happen also if people directly go to a page on my dbase. So if they go to http://www.militaryaircraftcollection.info/visualdbase/displayimage.php?album=lastup&cat=&pos=0 for example, they should be redirected to http://www.militaryaircraftcollection.info/index.htm instead. How do I do this??
You can try putting it in the scripts.js file. Then you'll need to alter the template.html file for each theme you are using accordingly.