title: .htaccess redirect rule permanent domain change
body: <p>So, basically I have changed the domain name from Domain1.info to Domain2.com</p>
  
  <p>Another thing that I have changed, is the rule for urls inside website</p>
  
  <ul>
  <li>old url structure: <code>www.Domain1.info/lang/page-name.html</code></li>
  <li>new url structure: <code>www.Domain2.com/lang/page-name</code></li>
  </ul>
  
  <p>I have added the code:</p>
  
  <pre><code>RewriteEngine On
  
  RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L]`
  </code></pre>
  
  <p>which successfully redirect me from old to new domain, but I want to get rid of the <code>.html</code> ending.</p>