title: How to redirect users if they enter domain IP instead of domain name
body: <p>My site for example named <code>example.com</code> and IP Address for it is <code>12.12.12.12</code> .</p>
  
  <p>All whats I need is when some one enter IP Address instead of the domain name the server must redirects the user to site with its name not IP address.</p>
  
  <p>In other word, when some one enter <code>12.12.12.12</code> the server must open site with its domain name <code>example.com</code>.</p>
  
  <p>How can I do that?</p>