rewrite rule not working
| From: | Chris W. Parker | Date: | Wed, 18 Feb 2004 23:35:32 +0000 |
| Subject: | rewrite rule not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178191@lists.php.net to get a copy of this message | ||
hi.
ok so i've got two rules in a .htaccess file. both of them are valid.
only one works.
here are the pertinent lines in my .htaccess:
RewriteEngine on
RewriteBase /~cparker/
RewriteRule ^products/([a-zA-Z0-9-]+)$ product.php?id=$1
RewriteRule ^verify/([a-f0-9]+)$ verify.php?uid=$1
Here is how the rules would be used:
(this one works fine)
http://domain.com/~cparker/products/ABC001
(this one gives a 404)
http://domain.com/~cparker/verify/a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4
I can't figure out for the life of me what's wrong with the second rule.
Anyone see a mistake?
Chris.