title: Apache, encode source URL before redirect
body: <p>I have .htaccess:</p>
  
  <pre><code>Options All -Indexes
  AddDefaultCharset utf-8
  
  RewriteEngine on
  RewriteBase /
  
  RedirectMatch 301 ^(/static-data.*/)$ /check?target=$1
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ /index.php?$1 [L]
  </code></pre>
  
  <p>And before redirect I want urlencode "target" value via .htaccess.
  This is possible?</p>