Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Rule not matching, but it should? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
consan
Newbie
Newbie


Joined: 23 June 2008
Location: Sweden
Online Status: Offline
Posts: 5
Posted: 25 June 2008 at 8:51am | IP Logged Quote consan

I am trying a rule in RegexTest. It doesn't work. Here's how it looks.

RewriteRule ^(.+)/(.*\?)(.*) /obra/?LCID=$1\&$3 [NC]

Test string: "apa/smakar?peck"

This results in: Pattern Not matched

If i try it in Expresso, it matches fine. Is this a bug in RegexTest?

I didn't write the rule, and I'm not sure it's needed, but there have been problems with the filter and I am looking it over and trying every rule in RegexTest.



Edited by consan - 25 June 2008 at 9:58am
Back to Top View consan's Profile Search for other posts by consan
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3934
Posted: 26 June 2008 at 4:03am | IP Logged Quote Anton

No this is not a bug. ISAPI_Rewrite 3.0 processes query string apart from the rest of the url. So your rule should look like:

RewriteBase /
RewriteCond %{QUERY_STRING} ^(.*)$ [NC]
RewriteRule
^(.+)/.+$ obra/?LCID=$1\&%1 [NC]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
consan
Newbie
Newbie


Joined: 23 June 2008
Location: Sweden
Online Status: Offline
Posts: 5
Posted: 26 June 2008 at 5:16am | IP Logged Quote consan

Ahh, very sneaky indeed. I'll try that.

Thanks!

Back to Top View consan's Profile Search for other posts by consan
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum