Need redirect *here*.site.com to site.com/ba/*here* in my wordpress in cyberpanel

i have a wordpress working fine in cyberpanel but I would like to redirect anywildcard.mysite.com > to > www.mysite.com/something/anywildcard … i can not do it , always showing 404 cyberpanel page… not even 404 wordpress … any help ?

Not to create child domains, its a main domain and infinite subdomains to point to post of wordpress