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

Query time 0.00023

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE storefronts ALL 3 Using where; Using filesort

Result

storefront_id url redirect_customer is_default status access_key name theme_name is_accessible_for_authorized_customers_only
1 stroy-san.ru Y Y N fc440072155d86bc6412e11812344093 Stroy-San bright_theme N