title: Apache2 VirtualHost - proper silent redirect?
body: <p>hopefully a quick and simple post here.</p>
  
  <p>For an example lets say I have the url "<a href="https://i.pitter.us/gwqNnGSAPuDqS.png" rel="nofollow">https://i.pitter.us/gwqNnGSAPuDqS.png</a>", However when the browser loads it is sent to the actual PHP Script that is determining which server to get the image from: "<a href="https://i.pitter.us/get.php?file=gwqNnGSAPuDqS.png" rel="nofollow">https://i.pitter.us/get.php?file=gwqNnGSAPuDqS.png</a> . </p>
  
  <p>In my Apache2 VirtualHost Configuration I have this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerAlias i.pitter.us
  DocumentRoot /var/www/html/i
  Options -Indexes
  &lt;Directory "/"&gt;
  &lt;Files  ~ "\.py*$"&gt;
    Order allow,deny
    Deny from all
  &lt;/Files&gt;
  &lt;/Directory&gt;
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^i.pitter.us$
  RewriteRule ^/(.*\.(png|gif|jpeg|jpg|exe|txt|zip|rar))$ https://i.pitter.us/get.php?file=$1
  ErrorDocument 404 /404.php    
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Before further explaining what I want to attempt to do, I have searched around quite a bit on StackOverflow and have tried different methods of doing this, and still at the conclusion of I can't configure this properly by myself. I need to have the URL stay as if it was a hotlink to a direct image as listed in the example above.</p>
  
  <p>Could someone provide an explanation on what flags or rules I am missing in order to properly accomplish what I am attempting?</p>
  
  <p>Thanks,</p>