Mobile app version of vmapp.org
Login or Join
Moriarity557

: Optimize htaccess I have two condition which are conflict RewriteRule ^patients/findadoctor/(.*).html$ subcategorydoctor.php?id= [L,NC] and RewriteRule ^patients/findadoctor/(.*).html$ specilitydoctor.php?id=

@Moriarity557

Posted in: #Htaccess #ModRewrite #Optimization #UrlRewriting

I have two condition which are conflict

RewriteRule ^patients/findadoctor/(.*).html$ subcategorydoctor.php?id= [L,NC] and
RewriteRule ^patients/findadoctor/(.*).html$ specilitydoctor.php?id= [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= [L,NC]

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Moriarity557

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme