title: How to redirect with htaccess to https while adding a language paramterer
body: <p>I have two domains example.com and example.de. Bot are pointing to the same server with the same website.
  If somebody is opening the site he should be redirected to use <a href="https://example.com" rel="nofollow noreferrer">https://example.com</a> regardless of the queried domain.</p>
  
  <p>Until now I'm using the following htacces code:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} off [OR]
  RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
  RewriteRule ^(.*) https://example.com/$1 [R=301,NE,L]
  </code></pre>
  
  <p>But now I want that everybody who was initially querying example.com is "redirected" to use the language parameter <code>?l=2</code> and everybode who opened example.de to use <code>?l=1</code>.</p>
  
  <p>It would be great if anybody knows how to combine that with https.</p>