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

Query time 0.00161

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "50.20"
    },
    "ordering_operation": {
      "using_filesort": true,
      "grouping_operation": {
        "using_filesort": false,
        "table": {
          "table_name": "storefronts",
          "access_type": "ALL",
          "possible_keys": [
            "PRIMARY"
          ],
          "rows_examined_per_scan": 236,
          "rows_produced_per_join": 116,
          "filtered": "49.43",
          "cost_info": {
            "read_cost": "26.87",
            "eval_cost": "23.33",
            "prefix_cost": "50.20",
            "data_read_per_join": "266K"
          },
          "used_columns": [
            "storefront_id",
            "url",
            "redirect_customer",
            "is_default",
            "status",
            "access_key",
            "name",
            "theme_name",
            "is_accessible_for_authorized_customers_only",
            "default_langsf"
          ],
          "attached_condition": "((`webmarco`.`storefronts`.`url` = 'dev-webmarco.com') or (`webmarco`.`storefronts`.`url` = 'www.dev-webmarco.com') or (`webmarco`.`storefronts`.`url` like 'www_.dev-webmarco.com') or (`webmarco`.`storefronts`.`url` like 'dev-webmarco.com/%') or (`webmarco`.`storefronts`.`url` like 'www.dev-webmarco.com/%') or (`webmarco`.`storefronts`.`url` like 'www_.dev-webmarco.com/%'))"
        }
      }
    }
  }
}

Result

storefront_id url redirect_customer is_default status access_key name theme_name is_accessible_for_authorized_customers_only default_langsf
1 dev-webmarco.com N Y N 1cb830e311b590bf49e71392d6cafb4e WebMarco vivashop N en