title: Redirect if domain is not correct
body: <p>I need to redirect URLs with wrong domains to the correct domain.</p>
  
  <p>Pseudo code example:</p>
  
  <pre><code>if (domain != "www.correctdomain.com")
      redirect("www.correctdomain.com")
  </code></pre>
  
  <p>How can I do this with a <code>.htaccess</code> file?</p>