I am using ionics isapi rewrite filter to redirect all .asp files to validate.asp file to do session validation. But I end up in a loop. Any help would be much appreciated.
my .ini file
ReDirectRule ^/XXXX/(.*).asp?(.*) /YYYY/validate.asp$2&url1=$1&url2=$2 [R]
validate.asp
<%
'validation step goes here..
Response.Redirect("../XXXX"&Request.QueryString("url1")&".asp"&Request.QueryString("url2"))
%>