title: Redirect IP address to domain name
body: <p>Not sure how it happened, but Google has indexed my site both by IP address and domain name
  and in some search in Google I see my site like <code>121.12.12.123/tech/tech.php</code>.</p>
  
  <p>Please let me know how can I redirect it to my domain?</p>
  
  <pre><code>121.12.12.123    redirect to   www.mydomain.com
  121.12.12.123/*  redirect to   www.mydomain.com/*
  </code></pre>