title: How to differentiate document requests from variable requests? and how to allow for urls that are not expected?
body: <p>My last post was met by smarmy, unhelpful "answers" (comments), so i'll get right to it:</p>
  
  <p>if I have an htaccess file like so:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  
  RewriteCond %{REQUEST_FILENAME} -f
  RewriteRule ^ - [L]
  RewriteRule ^([^/]+)/([^/]+)$ /index.php?page=$1&amp;subject=$2
  RewriteRule ^([^/]+)$ /index.php?page=$1 [L]
  </code></pre>
  
  <p>how can I allow for other url variable names and values to be handled... say for instance I want to add extra unexpected url vars to this scenario</p>
  
  <pre><code>/page/subject?urlvar1=value1&amp;urlvar2=value2
  </code></pre>
  
  <p>and get the page I want without creating unexpected results?</p>
  
  <p>Any real help is greatly appreciated.  Thanks!</p>