.htaccess newb - RewriteRule not matching 2nd rule, why?
        Posted  
        
            by 
                jyoseph
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jyoseph
        
        
        
        Published on 2011-02-23T23:11:31Z
        Indexed on 
            2011/02/23
            23:24 UTC
        
        
        Read the original article
        Hit count: 317
        
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.
© Stack Overflow or respective owner