Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: mod_rewrite and regex (bah)
09-14-2003, 03:22 PM #1
mod_rewrite and regex (bah)
I'm having some problems with my mod_rewrite rules
RewriteRule /news/([0-9]+) /news.php?id=$1
That works perfectly to how I want.
I tried adding another rule afterwards to make site.com/username to go to site.com/members.php but all I'm getting is an error 404
I'm using this
RewriteRule /([0-9]+) /news.php?id=$1
RewriteRule /([A-Za-z0-9]) /members.php
Also, is there a way to check that whatever is entered into the url isn't a directory that exists? for example site.com/images
09-14-2003, 03:33 PM #2
RewriteRule /members/([0-9A-Z]) /members.php
That works fine, I'll use this instead