How to differentiate document requests from variable requests? and how to allow for urls that are no
- by Lucas
Hello.
My last post was met by smarmy, unhelpful "answers" (comments), so i'll get right to it:
if I have an htaccess file like so:
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&subject=$2
RewriteRule ^([^/]+)$ /index.php?page=$1 [L]
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
/page/subject?urlvar1=value1&urlvar2=value2
and get the page I want without creating unexpected results?
Any real help is greatly appreciated. Thanks!