I'm trying to setup my htaccess file so that the following always occurs (across numerous values for "subdomain")...

subdomain.domain.com/anythingthatfollows
is redirected to
domain.com/anythingthatfollows?target=subdomain

I appreciate any assistance - or please advise if there is an easier way to do this than my htaccess.

Thank you in advance.