Difficulty Using Filter

Topics: User Forum
Apr 17, 2008 at 2:34 PM
The steps to install seem simple so I think I at least have this installed correctly. However, none of the filters I've tried work. The simplest one I've tried is this.

RewriteLog c:\temp\iirfLog.out
RewriteLogLevel 5

RewriteRule ^/test.html /test2.html

I then typed in 'http://127.0.0.1/test.html' in IE. I'm then shown test.html. I'm trying to get test2.html to show instead. This is what is in the log file.

Thu Apr 17 09:23:52 2008 - LogFile re-opened.
Thu Apr 17 09:23:52 2008 - Watcher: TerminateWatch = FALSE
Thu Apr 17 09:23:52 2008 - FileChangeWatcher(): Await returns (TerminateWatch= FALSE)
Thu Apr 17 09:23:52 2008 - FileChangeWatcher: Await()...
Thu Apr 17 09:23:52 2008 - AwaitIniChangeAndReinit()...
Thu Apr 17 09:23:52 2008 - watcher got something...
Thu Apr 17 09:23:52 2008 - Detected change in file 'IsapiRewrite4.ini'
Thu Apr 17 09:23:52 2008 - Detected change in the ini file. . .
Thu Apr 17 09:23:52 2008 - Ionic URL Rewriting ISAPI Filter v1.2.13
Thu Apr 17 09:23:52 2008 - ReadConfig
Thu Apr 17 09:23:52 2008 - LogFile re-opened.
Thu Apr 17 09:23:52 2008 - Read .ini file: new log file name: 'c:\temp\iirfLog.out.740.log'
Thu Apr 17 09:23:52 2008 - Read .ini file: setting LogLevel to 5
Thu Apr 17 09:23:52 2008 - ini line 4: RewriteRule 1 ^/test.html /test2.html (null)
Thu Apr 17 09:23:52 2008 - not a duplicate rule...
Thu Apr 17 09:23:52 2008 - Done reading .ini file: Found 1 rules (0 failed) on 5 lines

--------------------------------------------
Thu Apr 17 09:23:52 2008 - LogFile re-opened.
Thu Apr 17 09:23:52 2008 - Watcher: TerminateWatch = FALSE
Thu Apr 17 09:23:52 2008 - FileChangeWatcher(): Await returns (TerminateWatch= FALSE)
Thu Apr 17 09:23:52 2008 - FileChangeWatcher: Await()...
Thu Apr 17 09:23:52 2008 - AwaitIniChangeAndReinit()...
Thu Apr 17 09:24:58 2008 - HttpFilterProc SFNOTIFYURL_MAP
Thu Apr 17 09:24:58 2008 - OnUrlMap: storing physical path (c:\inetpub\wwwroot\test.html), in ptr (0x000f5a60)
Thu Apr 17 09:24:58 2008 - HttpFilterProc SFNOTIFYAUTH_COMPLETE
Thu Apr 17 09:24:58 2008 - DoRewrites
Thu Apr 17 09:24:58 2008 - GetServerVariable_AutoFree: getting 'url'
Thu Apr 17 09:24:58 2008 - GetServerVariable_AutoFree - no joy (likely reason: server var not set yet) (GetLastError()=1413)
Thu Apr 17 09:24:58 2008 - GetServerVariable_AutoFree: 128 bytes
Thu Apr 17 09:24:58 2008 - GetServerVariable_AutoFree: result '°¯'
Thu Apr 17 09:24:58 2008 - GetServerVariableAutoFree: getting 'QUERYSTRING'
Thu Apr 17 09:24:58 2008 - GetServerVariable_AutoFree: 1 bytes
Thu Apr 17 09:24:58 2008 - GetServerVariable_AutoFree: result ''
Thu Apr 17 09:24:58 2008 - GetHeader_AutoFree: 4 bytes
Thu Apr 17 09:24:58 2008 - GetHeader_AutoFree: result 'GET'
Thu Apr 17 09:24:58 2008 - New Url: '°¯'
Thu Apr 17 09:24:58 2008 - ApplyRules (depth=0)
Thu Apr 17 09:24:58 2008 - Rule 1 : -1 (No match)
Thu Apr 17 09:24:58 2008 - ApplyRules: returning 0
Thu Apr 17 09:24:58 2008 - No Rewrite

Can someone help me to get this to work.

Also, can someone tell me if I can even do what I want with this product. I want to change something like www.site1.com/index.html to www.site2.com/subdir/index.html. Yes, we actually have 2 domains registered and pointing at the same web server.


Thanks
Coordinator
Apr 23, 2008 at 6:55 PM
Can you try version 1.2.12 ?