I'm trying to get a mod_rewrite rule working:
These are the .htaccess rules
When I use the url
/item/brand/product.html?code=sessionid it activates the second rule, not the first. I want the sessionid to end up in GET variable "code"
What do I do wrong?
Code:
RewriteRule ^item/(.*)/(.*)\.html?code=(.*)$ item.php?brand=$1&title=$2&code=$3
RewriteRule ^item/(.*)/(.*)\.html$ item.php?brand=$1&title=$2
These are the .htaccess rules
When I use the url
/item/brand/product.html?code=sessionid it activates the second rule, not the first. I want the sessionid to end up in GET variable "code"
What do I do wrong?