I know how to redirect from 3rd level domain like this:
RewriteCond %{HTTP_HOST} ^(something)\.domain\.com$ [NC]
RewriteRule ^(.*) http://www.something.com/$1 [L,R]
Is there a way to perform same thing to redirect something.name.domain.com to something.name?
Rewrite rules are much like (driven by) regular expressions. From what I’m reading, you can use
RewriteCondbackreferences: