httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Dessent <br...@dessent.net>
Subject Re: [users@httpd] RewriteRules
Date Mon, 08 Sep 2003 22:27:22 GMT
"Warhurst, SI (Spencer)" wrote:

> I made the following adjustments/entries into httpd.conf:
> 
>   LoadModule rewrite_module modules/mod_rewrite.so
> 
>   # Configure ReWrite
>   RewriteEngine on
>   RewriteLog "d:/apache2/logs/rewrite.log"
>   RewriteRule ^/messages/(.+?)/(\d{2})(\d{2})/(\d+)
> /cgi-bin/wa.exe?A2=ind$3$2&L=$1&T=0&F=&S=&P=$4

I think the "\d" expression is a part of the "perl compatible" regular
expression class, whereas Apache uses Posix regexps, which have a lot
fewer features.  Try [0-9] where you have \d and see if that changes
anything.

This may have changed in 2.0, I don't know, but I think 1.3 uses the
posix ("egrep") style.

Brian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message