title: HTACCESS and the [PT] flag ignoring part of passed through url?
body: <p>I can't figure this out as when I test my rules at:</p>
  
  <p><a href="http://htaccess.madewithlove.be/" rel="nofollow">http://htaccess.madewithlove.be/</a></p>
  
  <p>It states it should be working.</p>
  
  <p>I am using this url:</p>
  
  <p><a href="http://site.com/uk/en/clients/1/view" rel="nofollow">http://site.com/uk/en/clients/1/view</a></p>
  
  <pre><code>Options +FollowSymlinks
  RewriteEngine on
  
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !(\.[^./]+)$
  RewriteRule ^(.+[^/](?!\.php))$ $1/ [QSA,PT]
  
  #language
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{QUERY_STRING} !lang
  RewriteRule ^([a-z]{2})/([a-z]{2})(?:/(.*)|)$ /$1/$3?lang=$2 [NC,QSA,PT]
  
  #country
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{QUERY_STRING} !country
  RewriteRule ^([a-z]{2})(?:/(.*)|)$ /$2?country=$1 [NC,QSA,PT]
  
  #keyword
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^/]+)/(.*)/$ /$2?keyword=$1&amp;test=$2 [NC,QSA,PT]
  
  #without actions
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php !-f
  RewriteCond %{QUERY_STRING} !keyword
  RewriteRule ^([^/]+)/(.*)$ /$2?keyword=$1 [NC,QSA,PT]
  
  #id
  RewriteCond %{QUERY_STRING} !id
  RewriteRule ^([^/]+)/(.*)$ /$2?id=$1&amp;test2=$2 [NC,QSA,PT]
  
  #actions
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php !-f
  RewriteCond %{QUERY_STRING} !action
  RewriteRule ^/(.*)$ /?action=$1 [NC,QSA,PT]
  
  RewriteCond %{REQUEST_URI} !(\.[^./]+)$
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule /$ /index.php [NC,QSA,L]
  </code></pre>
  
  <p>At the moment however it terminates at id and this is what is output:</p>
  
  <pre><code>Array ( [id] =&gt; view [test2] =&gt; [keyword] =&gt; clients [test] =&gt; 1/view [country] =&gt; uk [lang] =&gt; en )
  </code></pre>
  
  <p>I can't make out why it would be ignoring the 1/ and setting id as view instead?</p>