mercredi 1 mai 2019

How to insert conditions in htaccess file

I have two rules in .htacess file :

RewriteRule ^(.*)Play.php$ /api/catalog/play.php?bctns=$1 [QSA]
RewriteRule ^(.*)Competition.php$ /api/competition/play.php?qt=$1 [QSA]

I want do something like if(REQUEST_URI contain qt) then first rule executes else the request will reach second request as I expect the example requests /JarekPlay.php in both cases.

Aucun commentaire:

Enregistrer un commentaire