<script>try {if( self.location == "[color=#0000ff]http://[/color]:http:///www. A.com/" ) {top.location.href = "[color=#0000ff]http://[/color]:http:///www.A.com/A";}
else if( self.location == "[color=#0000ff]http://[/color]:http:///www.B.com/" ) {top.location.href = "[color=#0000ff]http://[/color]:http:///www.B.com/B";}
else if( self.location == "[color=#0000ff]http://[/color]:http:///www.C.com/" ) {top.location.href = "[color=#0000ff]http://[/color]:http:///www.C.com/C";}
else {document.write ("错误的访问地址")}} catch(e) {}</script></html>
保存为index.htm,上传到网站的根目录。
这样,网站的根目录下就只有A,B,C三个文件夹和index.htm这个文件了!
现在,三个网站就已经建立了!开始管理吧!
如果你的空间不支持子目录绑定,但你又想在同一个空间实现多个相互独立的网站的话,以下方法正是你要找的。