在首页中加脚本语句: <script type="text/javascript"> if (self != top) { top.location = self.location; } </script>