Hi, I could probably figure this out, but I don't speak asp, and this is important, so I don't want to screw it up. Plus, if this won't work for a 301 redirect or whatever, please let me know. Anyway, if anyone has a moment to use real syntax over the pseudocode in the second block, I'd really appreciate it.
I need this existing code modified:
I need it to first check to see if a URL variable exists, such as ?source=blah, and if it does exist, then send a different location. Something like this:
The variable is always called "source" and sometimes it's there, and sometimes it's not. Any help/advice/code greatly appreciated.
I need this existing code modified:
Code:
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "offerfreedemo.asp"
%>
I need it to first check to see if a URL variable exists, such as ?source=blah, and if it does exist, then send a different location. Something like this:
Code:
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
if urlvariable("source") exists then
Response.AddHeader "Location", "offerfreedemo.asp?source=$source"
else
Response.AddHeader "Location", "offerfreedemo.asp"
endif
%>
The variable is always called "source" and sometimes it's there, and sometimes it's not. Any help/advice/code greatly appreciated.