Hi,
many of htaccess rewrites are found on
google
"htaccess redirect subdomain to directory"
but you will need a lot of rules if you have many directories/subdomains:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^m\.example\.com$
RewriteRule ^ http://example.com/m%{REQUEST_URI} [L,P]
this will redirect your subdomain "m.example.com" to "example.com/m"