Rules are correct but getting a 404

Topics: Developer Forum, User Forum
Apr 24, 2008 at 5:19 PM
Edited Apr 24, 2008 at 5:25 PM
Hello,

I am running Windows 2003 on my server. IIRF was installed correctly. The log files show that rewrite rules have been found but it shows me a 404 error on the browser. Here is the log file output:

{"--------------------------------------------
Thu Apr 24 13:13:34 2008 - LogFile re-opened.
Thu Apr 24 13:13:34 2008 - Watcher: TerminateWatch = FALSE
Thu Apr 24 13:13:34 2008 - FileChangeWatcher(): Await returns (TerminateWatch= FALSE)
Thu Apr 24 13:13:34 2008 - FileChangeWatcher: Await()...
Thu Apr 24 13:13:34 2008 - AwaitIniChangeAndReinit()...
Thu Apr 24 13:13:34 2008 - watcher got something...
Thu Apr 24 13:13:34 2008 - Detected change in file 'IsapiRewrite4.ini'
Thu Apr 24 13:13:34 2008 - Detected change in the ini file. . .
Thu Apr 24 13:13:34 2008 - Ionic URL Rewriting ISAPI Filter v1.2.12c
Thu Apr 24 13:13:34 2008 - ReadConfig
Thu Apr 24 13:13:34 2008 - Read .ini file: setting LogLevel to 5
Thu Apr 24 13:13:34 2008 - LogFile re-opened.
Thu Apr 24 13:13:34 2008 - Read .ini file: new log file name: C:\Inetpub\iirf\log\mysite.log.2776.log
Thu Apr 24 13:13:34 2008 - Read .ini file: Filter Priority is now: LOW (0x20000)
Thu Apr 24 13:13:34 2008 - ini line 6: RewriteRule 1 about_mysite$ http://mysite.com/about.php L
Thu Apr 24 13:13:34 2008 - not a duplicate rule...
Thu Apr 24 13:13:34 2008 - ParseRuleModifierFlags: 'L'
Thu Apr 24 13:13:34 2008 - ParseRuleModifierFlags: token 'L'
Thu Apr 24 13:13:34 2008 - rule: Last
Thu Apr 24 13:13:34 2008 - ini line 7: RewriteRule 2 1$ http://mysite.com/1.php L
Thu Apr 24 13:13:34 2008 - not a duplicate rule...
Thu Apr 24 13:13:34 2008 - ParseRuleModifierFlags: 'L'
Thu Apr 24 13:13:34 2008 - ParseRuleModifierFlags: token 'L'
Thu Apr 24 13:13:34 2008 - rule: Last
Thu Apr 24 13:13:34 2008 - Done reading .ini file: Found 2 rules (0 failed) on 8 lines

--------------------------------------------
Thu Apr 24 13:13:34 2008 - LogFile re-opened.
Thu Apr 24 13:13:34 2008 - Watcher: TerminateWatch = FALSE
Thu Apr 24 13:13:34 2008 - FileChangeWatcher(): Await returns (TerminateWatch= FALSE)
Thu Apr 24 13:13:34 2008 - FileChangeWatcher: Await()...
Thu Apr 24 13:13:34 2008 - AwaitIniChangeAndReinit()...
Thu Apr 24 13:13:41 2008 - HttpFilterProc SFNOTIFYURL_MAP
Thu Apr 24 13:13:41 2008 - OnUrlMap: storing physical path (C:\Inetpub\www\mysite.com\httpdocs\about_mysite), in ptr (0x000cd898)
Thu Apr 24 13:13:41 2008 - HttpFilterProc SFNOTIFYAUTH_COMPLETE
Thu Apr 24 13:13:41 2008 - DoRewrites
Thu Apr 24 13:13:41 2008 - New Url: '/about_mysite'
Thu Apr 24 13:13:41 2008 - ApplyRules (depth=0)
Thu Apr 24 13:13:41 2008 - Rule 1 : 1 matches
Thu Apr 24 13:13:41 2008 - ReplaceServerVariables: InputString='http://mysite.com/about.php' out='http://mysite.com/about.php'
Thu Apr 24 13:13:41 2008 - GenerateReplacementString: src='/about_mysite','(null)' ReplacePattern='http://mysite.com/about.php' vec=[[ [ 1, 14] [] ] counts=1,0
Thu Apr 24 13:13:41 2008 - Result (length 28): http://mysite.com/about.php
Thu Apr 24 13:13:41 2008 - Last if Match
Thu Apr 24 13:13:41 2008 - ApplyRules: returning 1
Thu Apr 24 13:13:41 2008 - Rewrite Url to: 'http://mysite.com/about.php'
Thu Apr 24 13:13:41 2008 - HttpFilterProc SFNOTIFYURL_MAP"}

Cheeso (or anyone who has faced this same problem), can you tell me what may be going wrong? Basically when I am trying to access http://mysite.com/about_mysite, it shows me a 404.

Thanks in advance.
May 7, 2008 at 8:56 AM
I'm not sure if you've fixed your problem already, and I'm certainly no expert, but I think I faced a similar issue when I first installed IIRF. I assume that the http://mysite.com/about.php url does work? If so it might be the ordering of your filters that is at fault. IIRF has to execute before the PHP ISAPI filter. You first need to add RewriteFilterPriority HIGH in your ini file, the adjust the priority in the appropriate ISAPI Filters tab in the Internet Services Manager.

HTH,
JT