How to make a redirect for mobile visitors to my mobile website?

Hi, I didn’t get any replies in my last discussion, so I had to post a new one.

I was wondering if I can redirect mobile visitors to the mobile version. For example: (mydomain) to m.(mydomain)

If that’s possible, then how I can do it?

Can someone please tell me how to do that?