Previous rewrites being lost on Windows Server 2012

Topics: Developer Forum, Project Management Forum, User Forum
Mar 14, 2014 at 8:54 AM
I'm in the process of upgrading our server software. We're moving from Windows Server 2003 IIS6 32 bit to Windows Server 2012 IIS8 64 bit and from IIRF 1.2.15 to IIRF 2.1.2.3. The first rule strips off the first segment of the url. The second rule ends processing if there is a period in the url. This worked in IIRF 1.2.15. With IIRF 2.1.2.3 the output from the 1st rule appears to get lost and reverts back to the original url at depth=1. Since the 1st rule already removed it there should be no /spappz in the output of the second rule. Is this a bug or should I be constructing these rules in a different way?

--- SampleUrls.txt ------------------------------------------------------------------------------------

/spappz/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls

--- ini file ---------------------------------------------------------------------------------------------

RewriteLog c:\tmp\urlrewrite\secure1.out
RewriteLogLevel 3
RewriteRule ^/([^/?]*)/webapps/(.)$ /webapps/$2 [U]
RewriteRule ^([^.?]
). - [L]

--- Output from 2.1.2.3 test driver on Windows Server 2012 ------------------------------------------------

TestDriver: linked with 'Ionic ISAPI Rewriting Filter (IIRF) 2.1.2.3 x64 RELEASE'.
TestDriver: The IIRF library was built on 'Nov 11 2011 07:39:55'
Processing URLs...(c:\inetpub\SampleUrls.txt)
Fri Mar 14 00:21:22 - 200 - DoRewrites: Url: '/spappz/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls'
Fri Mar 14 00:21:22 - 200 - EvaluateRules: depth=0
Fri Mar 14 00:21:22 - 200 - EvaluateRules: Rule 1: 3 match
Fri Mar 14 00:21:22 - 200 - ApplyUrlEncoding: out '/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls'
Fri Mar 14 00:21:22 - 200 - EvaluateRules: Result (length 78): /webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls
Fri Mar 14 00:21:22 - 200 - EvaluateRules: depth=1
Fri Mar 14 00:21:22 - 200 - EvaluateRules: Rule 1: -1 (No match)
Fri Mar 14 00:21:22 - 200 - EvaluateRules: Rule 2: 3 matches
Fri Mar 14 00:21:22 - 200 - EvaluateRules: Result (length 85): /spappz/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls
Fri Mar 14 00:21:22 - 200 - EvaluateRules: Last Rule
Fri Mar 14 00:21:22 - 200 - EvaluateRules: returning 1
Fri Mar 14 00:21:22 - 200 - EvaluateRules: returning 1
REWRITE '/spappz/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls' ==> '/spappz/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls'

--- Output from 1.2.15 test driver on Windows Server 2003 ----------------------------------------

Fri Mar 14 01:05:12 - 4500 - Initialize: Ionic ISAPI Rewriting Filter (IIRF) v1.2.15 final R3
Fri Mar 14 01:05:12 - 4500 - Initialize: config file '.\IsapiRewrite4.ini'
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: depth=0
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: Rule 1 : 3 matches
Fri Mar 14 01:05:12 - 4500 - ApplyCaseConversion: after '/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls'
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: Result (length 78): /webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: depth=1
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: Rule 1 : -1 (No match)
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: Rule 2 : 3 matches
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: Result (length 78): /webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: Last Rule
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: returning 1
Fri Mar 14 01:05:12 - 4500 - EvaluateRules: returning 1
Fri Mar 14 01:05:12 - 4500 - DllMain PROCESS_DETACH
REWRITE '/spappz/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls' ==> '/webapps/spappz_live/division_detail_maint.asp?appid=spappz&division_ref=girls'