vbscript - Getting VB Script Error on my redirect script -
i getting vb compilation error on redirect script. placed redirect script @ root of server.
<% if instr(request.servervariables("olddomain"),"www") = 0 response.status="301 moved permanently" response.addheader "location","http://www." & request.servervariables("http_host") & request.servervariables("request_uri") response.end response.redirect("newdomain") end if %>
and error getting
microsoft vbscript compilation error '800a0400' expected statement /default.asp, line 5 & request.servervariables("http_host") ^
i not familiar vb. appreciate it.
thanks
line continuation in vbscript done _.
sample:
dim atests : atests = array(_ array("5-foo, 10 bar", 15) _ , array("11 baz", 11) _ , array("bad,string", 0) _ , array("hello,123,100, 100 ,xxx", 323) _ , array("whatever1junk2inbetween10000orafter", 10003) _ )
Comments
Post a Comment