Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: mod_rewrite troubles.
03-19-2004, 06:36 AM #1
- Join Date
- Jun 2002
- 72° W. 48' 57" , 41° N. 32' 04"
- Thanked 1 Time in 1 Post
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
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.