title: RewriteRule from mod_rewrite only works as redirect with added http://%{HTTP_HOST}, but doesn't work at all without it
body: <p>I use <a href="https://github.com/OTRS/otrs/blob/rel-6_0/scripts/apache2-httpd.include.conf" rel="nofollow noreferrer">this</a> apache config file on centOs 7. This file is is already set up to run </p>
  
  <pre><code>/opt/otrs/bin/cgi-bin/customer.pl
  </code></pre>
  
  <p>on my machine on a call to
      <a href="http://localhost/opt/customer.pl" rel="nofollow noreferrer">http://localhost/opt/customer.pl</a></p>
  
  <p>I wanted to use mod_rewrite to run the customer.pl and give it the called url as a parameter.
  So i want to enter the url:
      localhost/HTMLData/1/Default.htm</p>
  
  <p>and have it call:</p>
  
  <pre><code>/opt/otrs/bin/cgi-bin/customer.pl
  </code></pre>
  
  <p>with the parameters</p>
  
  <pre><code>?Action=CustomerHTML;Subaction=ContentCall;Target=1/Default.htm
  </code></pre>
  
  <p>That works somewhat with:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^/HTMLData/(.*)$ http://%{HTTP_HOST}/otrs/customer.pl?Action=CustomerHTML;Subaction=ContentCall;Target=$1
  </code></pre>
  
  <p>But i this is a redirect (because of the added "<a href="http://%" rel="nofollow noreferrer">http://%</a>{HTTP_HOST}").
  What i need is, that the webrowser keeps thinking <a href="http://localhost/HTMLData/1/" rel="nofollow noreferrer">http://localhost/HTMLData/1/</a> is where to get the files.
  But if i remove the "<a href="http://%" rel="nofollow noreferrer">http://%</a>{HTTP_HOST}", it doesn't work at all. But the examples i found on the internet said i should work this way. What do i have to change, to have the redirect only internaly without giving the browser the real url back?</p>
  
  <p>Thank you</p>