[Gllug] Regular expressions and mod_rewrite
Richard Jones
rich at annexia.org
Tue Jul 13 14:15:49 UTC 2004
On Tue, Jul 13, 2004 at 02:57:16PM +0100, Simon Perry wrote:
> RewriteRule ^dir/(\w+)$ /re_engine/script.php?var1=$1
>
> Anyone see my glaring error?
RewriteRule ^/dir/(\w+)$ /re_engine/script.php?var1=$1
^^ NB.
And for the other poster; yes, Apache includes a rather ancient
version of PCRE, so it uses Perl-compatible regexps where possible.
Unfortunately this has the side-effect of making modules which link to
the system-installed version of PCRE break violently. It's a bug
which I filed against Apache 2.0 ages ago, but they've never fixed it.
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
Learning Objective CAML for C, C++, Perl and Java programmers:
http://www.merjis.com/richj/computers/ocaml/tutorial/
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list