Here is my rule:
RewriteRule ^user/(\d+)$ rewrite.php?id=$1
This redirects, but $_GET['id']
is not set. If I change the above rule to:
RewriteRule ^anything/(\d+)$ rewrite.php?id=$1
It works. Why does one work but not the other?
Here is more information:
- There is no directory named
user
- The only other .htaccess file in the hierarchy is blank.
anything
can be replaced by anything other thanuser
.
Update: I checked the rewritelog
and it's empty.