title: htaccess redirect having problems with url encoded strings
body: <p>I have a relatively simple htaccess redirect that redirects all urls to a php file designed to handle urls with the exception of 3 specific directories:</p>
  
  <pre><code>Options +FollowSymLinks  
  RewriteEngine On  
  RewriteCond %{REQUEST_URI} !^/system [NC]
  RewriteCond %{REQUEST_URI} !^/assets [NC]
  RewriteCond %{REQUEST_URI} !^/downloads [NC]
  RewriteRule (.*)$ ./system/page.php?url=$1
  </code></pre>
  
  <p>And it works great... almost. For normal characters it works great but as soon as I introduce special characters that have been url encoded it seems to struggle a bit and I have no idea why.</p>
  
  <p>In page.php I have a simple line of code to display the url:</p>
  
  <pre><code>echo $_GET['url'];
  </code></pre>
  
  <p>The following is echoed out from these various urls:</p>
  
  <pre><code>mydomain.com/test -&gt; echos "test" (which is correct)
  mydomain.com/tt%23tt -&gt; echos "tt" (the desired echo would be tt%23tt)
  mydomain.com/tt%25tt -&gt; echos "tt%tt" (the desired echo would be tt%25tt)
  </code></pre>
  
  <p>Basically I am trying to get the string exactly as it appears in the url and let php handle it from there but I'm pretty terrible at htaccess. </p>
  
  <p>Any help would be great, thanks!</p>