Why won't these two mod_rewrite rules work together?
Posted
by George Edison
on Stack Overflow
See other posts from Stack Overflow
or by George Edison
Published on 2010-05-05T21:26:45Z
Indexed on
2010/05/05
21:38 UTC
Read the original article
Hit count: 137
mod-rewrite
|error
Here is what I have:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^users/(\d+)/post$ post.php [L]
RewriteRule ^users/(\d+)$ user.php?id=$1 [L]
The first rule doesn't work. The second one does.
All I get when I enter .../users/1/post
is a 404 error.
What am I doing wrong?
Edit: The error log doesn't have anything in it relating to this.
© Stack Overflow or respective owner