Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have two condition which are conflict

RewriteRule ^patients/findadoctor/(.*)\.html$  subcategorydoctor.php?id=$1 [L,NC] and
RewriteRule ^patients/findadoctor/(.*)\.html$  specilitydoctor.php?id=$1 [L,NC]

How do I set condition for that? I am doing:

RewriteCond %{REQUEST_URI} ^/patients/findadoctor/radiationoncology\.html$ [OR]   
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/paediatricsurgery\.html$ [OR]   
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/generalsurgery\.html$ [OR]      
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/neurosurgery\.html$ [OR]   
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/neurology\.html$ [OR]   
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/paediatrics\.html$ [OR]   
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/paediatriccardiology\.html$ [OR]   
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/paediatriccardiacanaesthesiology\.html$ [OR]        
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/paediatriccardiovascularthoracicsurgery\.html$ [OR]     
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/bonemarrowtransplant\.html$ [OR]    
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/kidneytransplant\.html$ [OR]      
RewriteCond %{REQUEST_URI} ^/patients/findadoctor/cardiacanaesthesiology\.html$
RewriteRule ^patients/findadoctor/(.*)\.html$ subcategorydoctor.php?id=$1 [L,NC]
share|improve this question
2  
They shouldn't conflict if you have different RewriteCond directives? –  w3d May 1 '13 at 11:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.