Currently I have a regular website, utilizing LAMP. I'd like to add a redirect for mobile devices to a subdomain, something like: m.mydomain.com
There's going to be some content differences between the content for PC and mobile devices.
What is the best way to do that? Can it be done with .htaccess file or do I need some sort of PHP script?