title: Best way to redirect mobile devices
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3680463/mobile-redirect-using-htaccess">Mobile Redirect using htaccess</a>  </p>
  </blockquote>
  
  
  
  <p>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</p>
  
  <p>There's going to be some content differences between the content for PC and mobile devices.</p>
  
  <p>What is the best way to do that? Can it be done with .htaccess file or do I need some sort of PHP script?</p>
  
  <p>Thanks.</p>