I have a bit of a problem with rewrite rules; so what I am trying to do is this;
[name].domain.com/files/ to [name].domain.com/users/[name]/files,
where [name] is sub-domain name, for instance "nick". Important part is that redirection should happened, only, if request contains sub-directory; files/.
Examples I could find on Google are examples related to sub-domain to sub-directory redirection and sub-directory to other sub-directory redirection, never combination of those two.