htaccess: how to differentiate document requests from variable requests? ... also, how to allow for

Posted by Lucas on Stack Overflow See other posts from Stack Overflow or by Lucas
Published on 2010-04-09T00:42:14Z Indexed on 2010/04/09 0:43 UTC
Read the original article Hit count: 373

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!

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about php