程序代码 Dim strServer_Name strServer_Name = LCase(Trim(Request.ServerVariables("SERVER_NAME"))) If strServer_Name <> "www.kuozhanming.com" Then Response.Redirect "http://www.kuozhanming.com" End If
网页客户端 将www.kuozhanming.com换成自己的网址
程序代码 <script type="text/javascript"> var my_domain = "http://www.kuozhanming.com"; var page_url = window.location.href; if ( page_url.indexOf(my_domain!= -1) { top.location = my_domain; } </script>