i have install successfully prosites and multi-domains but

Hello

i have install successfully prosites and multi-domains but i have another problem.

i have a wordpress theme with users profile details page,
now, i want to give my users a subdomain and that subdomain will redirect to there profile page...

sample:

user1.maindomain.com --> maindomain.com/?post=123
user2.maindomain.com --> maindomain.com/?post=456

maindomain.com is parked domain from cpanel