RewriteEngine On

# Match sas.qimerioni.ge and any subdomain
RewriteCond %{HTTP_HOST} ^([a-z0-9-]+\.)?sas.qimerioni\.ge$ [NC]

# Capture the first path segment
RewriteRule ^([^/]+) https://session-west.b-cdn.net?structure=$1 [L,R=301]