title: .htaccess remove http://www from url
body: <p>I want that a url of the form</p>
  
  <pre><code>http://www.example.com
  </code></pre>
  
  <p>redirects to</p>
  
  <pre><code>example.com
  </code></pre>
  
  <p>How can I achive this? I found that <a href="https://stackoverflow.com/questions/6515081/htaccess-remove-www-from-url-directories">.htaccess Remove WWW from URL + Directories</a> comes pretty close to my question, but I do not know how to change it appropriately.</p>