在首页加上这段js
<script type="text/javascript"> if(window !=top){ top.location.href=location.href; } </script>