Hiding index.cfm with application framework causing 2 requests

Dec 4, 2008 at 8:53 PM
I'm using a framework that all funnels through a single index.cfm at the web route.  I want to use SES "pretty" urls in lieu of the typical template + query string. 

I would like the following URL...
http://www.mysite.com/foo/bar

To behave like....
http://www.mysite.com/index.cfm?event=foo.bar

The framework I'm using handles the "?event=foo.bar" but I'm using the IIRF in lieu of "index.cfm".  This is the INI file I'm using...

IterationLimit 0
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(/.+/.+/.*\?.+\..*)$ /index.cfm/$1
RewriteRule ^(/[^.]*)$ /index.cfm/$1

I've noticed that this scenario is causing my framework to fire twice.  For example, I have a 'view counter' mechanism in place.  When a particular event is fired, a value in my database is incremented.  I'm seeing that value incremented by 2.  My debugging mechanisms are telling me that the framework isn't firing internally twice... it seems that my framework is seeing 2 requests. 

This URL results in the 'view counter' being incremented by 1
http://www.mysite.com/index.cfm/foo/bar

Where this URL is causing the 'view counter' to increment by 2
http://www.mysite.com/foo/bar

The IIRF config file I'm using wasn't written by myself.  This is my first experience using URL rewriters and don't know much about what's going on 'under the hood'.  Any advice/guidance is appreciated.

Thanks!
jqdurham

PS:  I'm running ColdFusion 8.0.1, ColdBox 2.6.1 (and 2.6.2rc) and Vista w/ IIS7
Coordinator
Dec 4, 2008 at 9:52 PM
can you submit one request and show us the IIRF logfile for that one request?
Dec 5, 2008 at 2:37 PM
Edited Dec 5, 2008 at 2:54 PM

Thank you for pointing me to the log files.    I can't see anything glaring in the log files... other than my IterationLimit was invalid and I had an extra "/" in my rewrite rules.  This is what I changed my configuration file to...


IterationLimit 1

RewriteLog  c:\temp\iirf
RewriteLogLevel 3

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(/.+/.+/.*\?.+\..*)$ /index.cfm$1 [U]
RewriteRule ^(/[^.]*)$ /index.cfm$1 [U]


And the resulting log file for one request....


Fri Dec 05 09:34:06 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:06 2008 - DoRewrites
Fri Dec 05 09:34:06 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:06 2008 - DoRewrites: New Url: '/support/kbarticle/removed-manually-from-iirf-log'
Fri Dec 05 09:34:06 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:06 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:06 2008 - ApplyRules: Rule 2 : 2 matches
Fri Dec 05 09:34:06 2008 - ApplyCaseConversion: after  '/index.cfm/support/kbarticle/removed-manually-from-iirf-log'
Fri Dec 05 09:34:06 2008 - ApplyRules: Result (length 57): /index.cfm/support/kbarticle/removed-manually-from-iirf-log
Fri Dec 05 09:34:06 2008 - ApplyRules: depth=1
Fri Dec 05 09:34:06 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:06 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:06 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:06 2008 - ApplyRules: returning 1
Fri Dec 05 09:34:06 2008 - DoRewrites: Rewrite Url to: '/index.cfm/support/kbarticle/removed-manually-from-iirf-log'
Fri Dec 05 09:34:06 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:06 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:06 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:06 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
***Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
***Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
***Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/css/screen-0808.css'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/css/ie-0808.css'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/common/js/jquery/jquery-1.2.6.js'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/common/js/targeted-links.js'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/bPhone.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/logo.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/bEmail.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/bChat.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/body-container-bg.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/main-nav-cap.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/dcc-bg-2.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/body-top.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/bNav-solutions.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/bNav-home.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/body-bottom.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_AUTH_COMPLETE
Fri Dec 05 09:34:07 2008 - DoRewrites
Fri Dec 05 09:34:07 2008 - GetServerVariable_AutoFree - no joy (GetLastError()=1413)
Fri Dec 05 09:34:07 2008 - DoRewrites: New Url: '/includes/images/bNav-support.gif'
Fri Dec 05 09:34:07 2008 - ApplyRules: depth=0
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 1 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: Rule 2 : -1 (No match)
Fri Dec 05 09:34:07 2008 - ApplyRules: returning 0
Fri Dec 05 09:34:07 2008 - DoRewrites: No Rewrite
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_URL_MAP
Fri Dec 05 09:34:07 2008 - HttpFilterProc: SF_NOTIFY_LOG


Thanks for your help.

Dec 5, 2008 at 3:00 PM
After studying the logs further... I think I see the second call causing my view counter to increment again.   The lines marked with *** above are the suspected problem.  I compared a request to /index.cfm/support/kbarticle/removed-manually-from-iirf-log and /support/kbarticle/removed-manually-from-iirf-log.  The logs from the request without index.cfm have these 3 additional lines... which is the second time they appear on the same request.

c:\inetpub\wwwroot\mysite\index.cfm\support\kbarticle\removed-manually-from-iirf-log
c:\inetpub\wwwroot\mysite\index.cfm
c:\inetpub\wwwroot\mysite\index.htm
Dec 5, 2008 at 8:01 PM
Also, I stumbled upon the following...

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ /index.cfm/$1

This is causing a 404 and I'm not sure why?
Dec 8, 2008 at 7:10 PM
My application doesn't experience the same behavior when loaded onto a Win2k3 (IIS6) server.  Could this be an IIS7 quark?  The same behavior occurs with Helicon's rewriter also.
Dec 17, 2008 at 4:44 PM
Helicon was able to get it working on ISAPI_Rewrite3 with these rules...

RewriteRule ^/index\.cfm(/[^.]*)?$ ?1$1 [NC,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(/[^.]*)$ /index.cfm$1 [NC,L]<!-- Signature -->

However they don't work with IIRF