Seriously need help with this error
Date: 07/18/05
(Web Development) Keywords: asp, web, microsoft
i tried adding an additional domain to my primary website and used this asp code:
(unmodified version)
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"DOMAIN2") <> 0 then
response.redirect "directory2"
else
response.redirect "index.html"
end if
%>
(modified version)
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"DISCOUNTPACKAGE") <> 0 then
response.redirect "dps"
else
response.redirect "default.asp"
end if
%>
i pasted the code in the default.asp of the root directory of the primary site, but i get this error now when i used it, HELP!
http://www.wholesalepackaging.com
---------------------------------------------------------
Microsoft VBScript compilation error '800a0400'
Expected statement
/includes/Top_Template.inc, line 1
Option Explicit
^
Source: http://www.livejournal.com/community/webdev/221641.html