Hi, I have this select redirect that doesnt work, only the case else works, anyone see whats wrong with it? Its basically to redirect my dynamic pages to their new homes.
Any help appreciated.
Thanks
Richard
Any help appreciated.
Thanks
Richard
Code:
<%@Language=VBScript%>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")
%>
<%
Select Case SiteNameURL
Case "http://www.mysite.com/directory.asp?categoryid=1"
response.redirect "am-art.asp"
Case "http://www.mysite.com/directory.asp?categoryid=2"
response.redirect "uf-art.asp"
Case "http://www.mysite.com/directory.asp?categoryid=3"
response.redirect "uf-art.asp"
Case "http://www.mysite.com/directory.asp?categoryid=4"
response.redirect "uf-art.asp"
Case "http://www.mysite.com/directory.asp?categoryid=5"
response.redirect "uf-art.asp"
Case "http://www.mysite.com/directory.asp?categoryid=6"
response.redirect "uf-art.asp"
Case Else 'redirecting everything other than cases selected above
response.redirect "./"
End Select
%>
Comment