On the sub-pages put:
Code:
<script type="text/javascript">
if(top.location.href === location.href)
location.replace('/');
</script>
That's assuming the index page is in the root of the domain and has a name like index.htm, or index.html, etc. that makes it the default page. If in doubt, you may use the absolute path to the page you want to redirect to, ex:
Code:
<script type="text/javascript">
if(top.location.href === location.href)
location.replace('http:/www.mydomain.com/index.html');
</script>
But the relative path or the network path (as in the first code block) is preferred for compatibility reasons.
Bookmarks