怎么让网站404跳到自己定义的404页面呢?
我们家新建了一个站,在做404测试的时候,遇到404不跳到我们自己定义的404页面,怎么样才能解决啊?
我们看后台代码,有下面一个函数,求解函数的具体作用
Public Sub GotoErrPage()
Dim PageUrl,IsLogin,IsErrPage
PageUrl = Request.ServerVariables("Script_Name")
IsLogin = InStr(PageUrl , "Master/")
IsErrPage = InStr(PageUrl , "ErrPage.asp")
If SiteClose = "1" And IsLogin = "0" And IsErrPage = "0" Then
Response.Redirect(PagePath & "ErrPage.asp")
Response.End()
End If
End Sub