View Full Version : mod_rewrite troubles.

03-19-2004, 07:36 AM
i'm trying to use mod_rewrite to pass files in certain directories to a php file. i've read the documentation, but there's obviously something that i'm missing, because i can't get this to work.

i'm placing the following .htaccess file in my public_html directory

RewriteEngine on
Options +FollowSymlinks
RewriteBase /

RewriteRule ^((?:(?:blackveil|gallery|script|style)\/)?(?:\w+\.?\w*\.htm))$ /parse.php?url=$1

it doesn't appear to be matching anything. various tweaks to it have resulted in 503s and 504s. i suspect two things:

1) i'm using some unsupported RE syntax ( (?:), to be specific )
2) i need to be using RewriteCond somehow

could someone confirm that, if nothing else? i'm finding the documentation very hard to read, and the examples provided to be of little help in this particular instance.