rewrite not working

Topics: User Forum
Dec 17, 2007 at 10:00 AM
Hi!

I've installed IIRF and created the ini file.... (IIRF 1.1.12c, win 2003 R2 Standard Edition SP2, IIS6.0)
according to the log, everything is working fine... (except of unsupported QSA flags)


the url rewite is correct....


Mon Dec 17 10:32:37 2007 - New Url: '/en/projects/'
Mon Dec 17 10:32:37 2007 - ApplyRules (depth=0)
Mon Dec 17 10:32:37 2007 - Rule 1 : -1 (No match)
Mon Dec 17 10:32:37 2007 - Rule 2 : -1 (No match)
Mon Dec 17 10:32:37 2007 - Rule 3 : -1 (No match)
Mon Dec 17 10:32:37 2007 - Rule 4 : 3 matches
Mon Dec 17 10:32:37 2007 - Result (length 62): http://test-www-XXX/main.php?language=en&param1=projects
Mon Dec 17 10:32:37 2007 - Last if Match
Mon Dec 17 10:32:37 2007 - ApplyRules: returning 1
Mon Dec 17 10:32:37 2007 - Rewrite Url to: 'http://test-www-XXXi/main.php?language=en&param1=projects'

however on the browser I only get 404 error (if I understand correctly, the browser should get the main.php?..... page). If I copy the link from the log it works correctly.
If I add a R flag it redirects to the correct url and it works (but it shows the new address which it should not).

What could be the problem?
Dec 17, 2007 at 10:07 AM
Hi!

I resolved the problem, but if you want to be as close to apache as possible, you should correct this:

rewrites did not work (they worked on apache) in the following form:
RewriteRule ^/?(a-zA-z0-9_)/(a-zA-z0-9_)/$ http://%{HTTP_HOST}/main.php?language=$1&param1=$2 L,QSA

but worked in the form of
RewriteRule ^/?(a-zA-z0-9_)/(a-zA-z0-9_)/$ /main.php?language=$1&param1=$2 L,QSA

cheers, Leto
Coordinator
Jan 8, 2008 at 1:41 PM
Thanks for the note!
This is a known issue, check the readme .