Topic: [:digit:] in rules ?
|

|
| Author |
|
antonomase Newbie

Joined: 01 February 2012
Online Status: Offline Posts: 2
|
| Posted: 01 February 2012 at 8:56am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 02 February 2012 at 3:46am | IP Logged
|
|
|
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 |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|