Rewrite %

Topics: Developer Forum, Project Management Forum, User Forum
Feb 14, 2011 at 1:24 AM

Hello!

How rewrite

mysite.com/q/%EF%EE%EC%EE%F9%FC   to mysite.com/?q=%EF%EE%EC%EE%F9%FC

RewriteEngine on
UrlDecoding OFF
RewriteRule ^/q/(.*)$ /?q=$1

don't work :(

 Mon Feb 14 05:01:00 - 8888 - EvaluateRules: Rule 24: -1 (No match)
Mon Feb 14 05:01:00 - 8888 - EvaluateRules: Rule 25: -1 (No match)
Mon Feb 14 05:01:00 - 8888 - EvaluateRules: Rule 26: -1 (No match)
Mon Feb 14 05:01:00 - 8888 - EvaluateRules: Rule 27: -1 (No match)
Mon Feb 14 05:01:00 - 8888 - EvaluateRules: Rule 28: -1 (No match)
Mon Feb 14 05:01:00 - 8888 - EvaluateRules: Rule 29: -1 (No match)
Mon Feb 14 05:01:00 - 8888 - EvaluateRules: Rule 30: -1 (No match)
Mon Feb 14 05:01:00 - 8888 - EvaluateRules: returning 0
Mon Feb 14 05:01:00 - 8888 - DoRewrites: No Rewrite

 

Coordinator
Feb 23, 2011 at 2:53 AM

Your ini file there has exactly one rule, but the IIRF log file indicates that you have 30 rules.

Can you post a logfile for a full request, that is generated by the simple ini file?

Also - keep in mind that you cannot rewrite out of an App Pool.   If /q is its own application with AppPool1, and you rewrite into the root application (/?) and the root is serverd by AppPool2, this will fail with a 403 (I think).  I know it will fail, I just cannot recall the failure you will get.

 

Coordinator
Feb 23, 2011 at 2:57 AM

ps: I just tested this here, and it works for me using IIRF v2.1.1.25.