title: How to rewrite to mobile.myUrl.com if user is mobile? (use Apache or inside Webapp?)
body: <p>If a user is viewing my Website www.myUrl.com with a mobile Browser, I would like to redirect them to mobile.myUrl.com.
  I read this thread <a href="https://stackoverflow.com/questions/1005153/auto-detect-mobile-browser-via-user-agent">Auto detect mobile browser (via user-agent?)</a>, which says, that you should detect the user-agent and then redirect the user.</p>
  
  <p>But I havent found a thread, which tells me HOW to redirect to mobile.myUrl.com. Should and can I use Apache for that? Or should I instead do it inside my Webapp?</p>