Im trying to add a rewrite rule to my htcaccess file and the part Im having trouble wth is the query string. I want to add the query string parameter pid to the rewrite rule. Both lines of code don't work how do set up query string for you're rewrite rules.
RewriteRule browse/(.*)/?pid=(/d+) show_products.php?department=$1&pid=$2 RewriteRule browse/(.*)/?pid=([0-9]+) show_products.php?department=$1&pid=$2 should look like
http://mysite.com/browse/department?pid=1 or
http://mysite.com/browse/department/?pid=1 i've got it to do this but it has no question mark does anyone know how to get it to have the question mark
RewriteCond %{QUERY_STRING} ^$ RewriteRule browse/(.*)/pid=([0-9]+)$ show_products.php?department=$1&pid=$2 http://mysite.com/browse/department/pid=1