I'm trying to implement a URL redirect via ASP as we are not using Apache on our webserver. We're wanting to allow spiders to index pages behind a login screen and redirect browsers to a registration/sign-in page (we got the idea from an article on the IEEE website we ran across while doing some research). Below is the code placed before the html for the page, and also the error I keep getting. Any help is appreciated, as I'm fairly new to ASP.
CODE:
<%
Dim Spidercheck
Spidercheck = UCase(Request.ServerVariables("http_user_agent"))
If Spidercheck = "GOOGLEBOT" Then
Server.Redirect("/internet/index.htm")
EndIf
%>
ERROR:
Microsoft VBScript compilation error '800a0400'
Expected statement
/online-training.asp, line 6
EndIf
^