htaccess: how to differentiate document requests from variable requests? ... also, how to allow for
- by Lucas
hello,
my last post was met by smarmy, unhelpful "answers" (comments), so i'll get right to it:
if i have and 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!