rewrite rule regex not matching

Topics: Developer Forum
Apr 1, 2014 at 6:20 PM
I have a rewrite rule that is not matching. It originates from a .htaccess file and looks like this:
RewriteRule ^([^/.]+).html$ /mm5/merchant.mvc?Screen=$1&%{QUERY_STRING} [L]
As I read this rule, if I go to:
www.mydomain.com/MYPAGE.html
the rule should rewrite it as:
www.mydomain.com/mm5/merchant.mvc?Screen=MYPAGE
This rule is working on the production site which is on *nix. I am running a development site under windows 2003 with IIS 6.0 and I am using IIRF. I have logging cranked up all the way so I see it telling me that there are no matches for this rule.

Can anyone please help me? I can't figure out what is wrong with this...
Apr 1, 2014 at 6:26 PM
Some more information. Here's what the log has (in this case I was trying to go to /SFNT.html:
EvaluateRules: no RewriteBase
EvaluateRules: Rule 1: pattern: ^mm5/admin.mvc?  subject: /SFNT.html
EvaluateRules: Rule 1: -1 (No match)
EvaluateRules: Rule 2: pattern: ^product/([^/.]+).html$  subject: /SFNT.html
EvaluateRules: Rule 2: -1 (No match)
EvaluateRules: Rule 3: pattern: ^category/([^/.]+).html$  subject: /SFNT.html
EvaluateRules: Rule 3: -1 (No match)
EvaluateRules: Rule 4: pattern: ^product/([^/]+)/([^/.]+).html$  subject: /SFNT.html
EvaluateRules: Rule 4: -1 (No match)
EvaluateRules: Rule 5: pattern: ^([^/.]+).html$  subject: /SFNT.html
EvaluateRules: Rule 5: -1 (No match)
EvaluateRules: Rule 6: pattern: (.*)  subject: /SFNT.html
EvaluateRules: Rule 6: 2 matches
EvaluateRules: Rule 6: evaluating condition
EvalCondition: cond 0x01C384A0
Again, looking at rule #5, it looks like there should be a match there...
Apr 1, 2014 at 7:15 PM
I got it. I rewrote the rule as follows:
RewriteRule ^\/([^.]+).html$ /mm5/merchant.mvc?Screen=$1&%{QUERY_STRING} [L]
I needed to get the slash outside of the class...