This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: [:digit:] in rules ? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
antonomase
Newbie
Newbie


Joined: 01 February 2012
Online Status: Offline
Posts: 2
Posted: 01 February 2012 at 8:56am | IP Logged Quote antonomase

Hi,

I'm moving a website from IIS 6/Isapi rewrite to IIS7/Ape.
I have rules like
RewriteRule ^/news,(.*),([[:digit:]]+).html$         /actualite.php?&id=$2&lang=en [NC,L,U]
which works in the old version and not in the new one.
I have to replace [[:digit:]] with [0-9]

Is it normal ?


Back to Top View antonomase's Profile Search for other posts by antonomase
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 02 February 2012 at 3:46am | IP Logged Quote Anton

Yes, it's true - new .NET RegExp library does not support this syntax, so please use [0-9] or \d instead:

RewriteRule ^/news,(.*),(\d+)\.html$ /actualite.php?&id=$2&lang=en [NC,L,U]

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

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 can vote in polls in this forum