title: Working with subdomain
body: <p>I have few questions regarding subdomains in my mind. I know how to get a subdomain and redirect to it using <code>.htaccess</code> or placing js file in our directory. </p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>Suppose I have a website <code>www.mysite.com</code> and I want to redirect
  mobile users to <code>m.mysite.com</code>. Can I place <code>js</code> file with
  redirecting code anywhere in the directory or should it be in
  specific path?</li>
  <li>I want different functioning and styling for mobile users for which
  I have to write a separate code.  Where will I place this mobile
  friendly code and link it to redirecting code? I don't want to use
  any app or web service for this.</li>
  </ol>