u should point the document root of ur subdomain to your main domain’s directory.
Eg: if ur main directory(document root) for domain yourdomain.com is /home/yourname/public_html, then m.yourdomain.com document root should also be /home/yourname/public_html
But i will redirected to desktop theme ?
But i will redirected to desktop theme ?
I didnt understand that.
See if you visit yourdomain.com from mobile phone u will be automatically redirected to m.yourdomain.com and will be shown mobile theme.
And if you visit yourdomain.com from a pc then you will be shown the normal desktop theme.
I want to redirect to mobile theme for every devices (mobile and desktop) if visitor visit to m.domain.com .
For example if a desktop PC user visit m.domain.com , he will see mobile theme.
then in mobile switcher settings select Switcher mode: domain mapping .. and type in respective domains ..
this will solve the problem..