[Gllug] Regular expressions and mod_rewrite

Simon Perry gllug at si-designs.co.uk
Tue Jul 13 13:57:16 UTC 2004


Hi,

I'm trying to match the following;
domain.com/dir/test
or this
domain.com/dir/test_underscore
with...
Options +FollowSymlinks
RewriteEngine On
RewriteBase /

RewriteRule ^dir/(\w+)$ /re_engine/script.php?var1=$1

but all I get are 404's

RewriteRule ^dir/([a-z]+)$ /re_engine/script.php?var1=$1
matches the top example so mod_rewrite itself is working.

Anyone see my glaring error?

Simon
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list