title: %2520 (Double space) in URL for URL with spaces
body: <p><br><br>My URL structure is like</p>
  
  <pre><code>http://www.example.com/folder/index.php?dir=dir1
  </code></pre>
  
  <p>To be able to access it from</p>
  
  <pre><code>http://www.example.com/folder/dir1
  </code></pre>
  
  <p>and at the same time redirect the 1st URL to 2nd one, my htaccess (in 'folder') is</p>
  
  <pre><code>Options +FollowSymLinks 
  
  RewriteEngine On
  RewriteBase /folder
  
  RewriteCond %{ENV:REDIRECT_STATUS} 200
  RewriteRule .* - [L]
  
  RewriteCond %{QUERY_STRING} ^dir=(.*)$ [NC]
  RewriteRule ^ %1? [L,R=301]
  
  RewriteRule ^(.+)/? index.php?dir=$1 [L,QSA]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} -d
  
  RewriteRule ^(.*)$ index.php?dir=$1 [L,QSA]
  </code></pre>
  
  <p>The trouble is that if any directory name in URL contains a 'space', the URL shows %2520 instead of the 'space'.<br><br>Please advice in modifying the htaccess so it shows %20 or preferrably a simple 'space'?</p>