title: how to redirect domain according to country IP address
body: <p>I made a site it with some subdomains; according to the country's IP address the user is supposed to be automatically redirected to corresponding subdomain. </p>
  
  <p><strong>Example :</strong></p>
  
  <p>Main site is <code>abcd.com</code></p>
  
  <ul>
  <li>Suppose some one from  <strong>India</strong> typed this url abcd.com, </li>
  <li>then the page redirects to <code>ind.abcd.com</code></li>
  </ul>