.htaccess newb - RewriteRule not matching 2nd rule, why?
- by jyoseph
I am currently migrating from isapi_rewrite to .htaccess. I'm having some difficulty and I think it's something basic, but I'm not terribly familiar with .htaccess.
I have the two rules like so:
RewriteRule ^testing/ /test/index.html?test=1 [NC]
RewriteRule ^testing/foo-bar/ /test/index.html?test=2 [NC]
Yet the second rule never matches. If I go to http://mydomain.com/testing/foo-bar/ then I will only see the first rule. Why is that? And can it be easily fixed?
I have many rules (outputted from the database to write the .htaccess file )and ordering them in a particular order isn't really possible.