RewriteCond %{REQUEST_URI} !^/w/ [NC]
RewriteCond %{HTTP_COOKIE} !userLanguage [NC] // проверяю если нет куки
RewriteCond %{REQUEST_URI} !\.(js|css|woff|woff2|css\.map|min\.js\.map|png|jpg)$
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !(RU|AZ|AM|BY|KZ|KG|MD|TJ|UZ)
RewriteRule ^(.*)$ https://site/w/ [R=301,L]