.htaccess - Grabbing Querystrings while using ModRewrite with PHP -
i'm using url rewriting through .htaccess on site. submit through paypal's expresspay , following returned:
http://mydomian.com/cart/success?token=ec-123456789&payerid=123456789
the /cart , /success great, there easy way grab "token" "payerid" variables?
here's .htaccess i'm working with:
rewriterule ^([^/\.]+)/?$ index.php?load=$1 rewriterule ^([^/\.]+)/([^/\.]+)/?$ index.php?load=$1&query=$2 rewriterule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?load=$1&query=$2&query2=$3 [l]
add [qsa]
each of rules, , change third rule have these flags: [l,qsa]
. make query string paypal appended , you'll able access them index.php.
Comments
Post a Comment