title: Redirect omitting parameters in .htaccess
body: <p>After a couple of hours of fighting, I manage to generate an htacces file to redirect all my old URLs to the URLs of my new site (same domain). I am using the following rules to manage my subfolders redirects (my new site has only a couple of pages): </p>
  
  <pre><code>RewriteRule ^es/empresa/terminos-y-condiciones.html$ http://domain/terminos-y-condiciones.html [L]
  RewriteRule ^es/servicios/registro-de-dominios/.*$ http://domain/dominios.html [R=301,NC,L]
  RewriteRule ^es/empresa/.*$ http://domain/nosotros.html [R=301,NC,L]   
  RewriteRule ^es/component/.*$ http://domain/contacto.html [R=301,NC,L]
  RewriteRule ^es(/.*)?$ / [R=301,NC,L]
  </code></pre>
  
  <p>The problem is that when I try to access to some pages like domain.com/empresa/testimonios-de-clientesc69a.html?lang=es it redirects me to domain/?lang=es , that is my domain+the parameter after ".html".</p>
  
  <p>So, I was wondering if there was a way to eliminate this parameter and redirect only to www.domain.com ?</p>
  
  <p>Thanks in advance!</p>