This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: [:digit:] in rules ?
Author
Message |
antonomase
Newbie


Joined: 01 February 2012
Posts: 2
Posted: 01 February 2012 at 8:56am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 February 2012 at 3:46am

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
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version