Web Hosting Talk







View Full Version : ASP error when redirecting!!!!


Zhoog
07-31-2002, 02:57 PM
am trying to redirect to another site using server.execute http://www.somesite.com. This is a site on another server. Although the Server.execute syntax works for other files on the same server using relative path, I get the following message trying to go to another server:
Server object error 'ASP 0231 : 80004005'

Server.Execute Error

/theirf&you/specificneeds/preprocess.asp, line 7

Invalid URL form or fully-qualified absolute URL was used. Use relative URLs.

shiphq
08-01-2002, 12:17 PM
Why not just redirect using:

<%
response.redirect "http://www.whatever.com"
%>

devon
08-01-2002, 12:39 PM
Yes, use the response.redirect command instead.

server.execute is usually used to just run an asp script that doesn't have any user output.