[thelist] mod_rewrite regular expression

Simon Perry thelist at si-designs.co.uk
Tue Jul 13 08:19:28 CDT 2004


Hi,

I am having problems with mod_rewrite using the following;

Options +FollowSymlinks
RewriteEngine On
RewriteBase /

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

The above should match this
www.domain.com/dir/test
or this
www.domain.com/dir/test_underscore
but I end up with a 404 and no messages in the logs.

TIA

Simon



More information about the thelist mailing list