Home Modrewrite rule messes up variables
 I want to redirect the following example URL: http://example.com/phone/iphone-4-vs-iphone-5/vote/123  To: http://example.com/product.php?category=phone&p1=iphone-4&p2=iphone-5&user=123  I tried the following ModRewrite rule in my htaccess file: RewriteRule ^(phone)/(.*)-vs-(.*)/vote/([1-9][0-9]*)$/product.php?category=$1&p1=$2&p2=$3&user=$4 [L]  I have this in product.php file: '; echo$_GET['p1']; echo '
'; echo $_GET['p2']; echo ' '; echo$_GET['user']; ?>  The expected output of PHP: phone iphone-4 iphone-5 123  The actual output I get: phone iphone-4 iphone-5/vote/123  Therefore the rewrite rule has something wrong so that it attaches the user variable to the p2 variable.