SELECT 
  storefronts.* 
FROM 
  cscart_storefronts AS storefronts 
WHERE 
  1 = 1 
  AND (
    storefronts.url = 'yourmart.co.bw' 
    OR storefronts.url = 'www.yourmart.co.bw' 
    OR storefronts.url LIKE 'www_.yourmart.co.bw' 
    OR storefronts.url LIKE 'yourmart.co.bw/%' 
    OR storefronts.url LIKE 'www.yourmart.co.bw/%' 
    OR storefronts.url LIKE 'www_.yourmart.co.bw/%'
  ) 
GROUP BY 
  storefronts.storefront_id 
ORDER BY 
  storefronts.url = 'yourmart.co.bw' DESC, 
  storefronts.url = 'www.yourmart.co.bw' DESC, 
  storefronts.url LIKE 'www_.yourmart.co.bw' DESC, 
  storefronts.url LIKE 'yourmart.co.bw/%' DESC, 
  storefronts.url LIKE 'www.yourmart.co.bw/%' DESC, 
  storefronts.url LIKE 'www_.yourmart.co.bw/%' desc

Query time 0.00032

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "storefronts",
      "access_type": "system",
      "rows": 1,
      "filtered": 100
    }
  }
}

Result

storefront_id url redirect_customer is_default status access_key name theme_name is_accessible_for_authorized_customers_only
1 yourmart.co.bw N Y N 5276 Your Mart abt__youpitheme N