I am trying to write a .htaccess line that will be rewritten in php script, but still allow the addition of additional incremental variables at the end. Is it possible?
I am currently trying to use this:
RewriteRule ^item/([^/]*)([^/]*)$ /item.php?id=$1&$2 [L]
The goal is to be able to do things like blah.com/item/foo , but also blah.com/item/foo?bar=whatever .
Currently, it seems to correctly pass the first part, id , but not the rest.
source share