leeboycymru
Programmer
I have put together a 404.asp error handling page that I havent sorted out yet with my clients host.
I re-designed a clients webapge, and moved some of his .htm files to .asp so i was told that this is the best way of handling it.
I have entered the code below, and was wondering if somebody could check it out before I go any further.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Redirect</title>
</head>
<body>
<%
strRedirect = Mid(lcase(Request.QueryString), 5)
%>
<%
Select Case strRedirect
Case " Response.Redirect(" Case Else
Response.Redirect(" End Select
%>
</body>
</html>
I put a case else statement at the end, that redirects the user to my home page if they come across this page accidently I think, is this right also.
cheers
Lee
I re-designed a clients webapge, and moved some of his .htm files to .asp so i was told that this is the best way of handling it.
I have entered the code below, and was wondering if somebody could check it out before I go any further.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Redirect</title>
</head>
<body>
<%
strRedirect = Mid(lcase(Request.QueryString), 5)
%>
<%
Select Case strRedirect
Case " Response.Redirect(" Case Else
Response.Redirect(" End Select
%>
</body>
</html>
I put a case else statement at the end, that redirects the user to my home page if they come across this page accidently I think, is this right also.
cheers
Lee