title: mod_rewrite redirect to URL with propietary protocol
body: <p>I'm using Apache 2.2 with mod_rewrite.</p>
  
  <p>Is there a way to force mod_rewrite to rewrite the entire URL, including protocol? I know it will automatically rewrite the whole URL if the redirect contains <code>http://</code> at the beginning but I'm trying to redirect to a URL that uses a proprietary protocol: <code>fcp://</code></p>
  
  <p>When I add it in as the redirect it just redirects to the URL of my server with the rewrite appended like so:</p>
  
  <pre><code>http://www.example.com/fcp://@mailstaff....
  </code></pre>
  
  <p>Can I configure the module to treat <code>fcp://</code> as a full URL so I don't run in to this?</p>
  
  <p><strong>UPDATE:</strong> Here is the code I am using:</p>
  
  <pre><code>RewriteCond ${externals:$2|Unknown} !Unknown
  RewriteRule ^(internal|external)/(.*)/? ${externals:$2} [R=301,NE,L,NS]
  </code></pre>
  
  <p>Inside the <code>externals</code> RewriteMap, I have a line like this:</p>
  
  <pre><code>firstclass-email        fcp://@mailstaff.example.com/
  </code></pre>
  
  <p>When I go to trigger the RewriteRule by going to:</p>
  
  <pre><code>http://example.com/internal/firstclass-email
  </code></pre>
  
  <p>It will incorrectly redirect me to here:</p>
  
  <pre><code>http://example.com/fcp://@mailstaff.example.com/
  </code></pre>
  
  <p>If I change the protocol part from <code>fcp://</code> to <code>http://</code>, Apache will realize it's an absolute URL and work correctly. I want Apache to recognize <code>fcp://</code> should also be absolute.</p>