i'm sorry i can't get out of this alone... after a successful payment users are redirected to this URL on my site:
https://www.example.com/orders/?token=AAA&status=OK
i would like to grab token and status and assign them to GET variables but i'm truly unable to do so, this is my current RewriteRule:
RewriteRule ^orders/?token=([^/]+)&status=([^/]+)$ /orders.php?lang=it&token=$1&result=$2 [L]
in orders.php i have this line:
echo "token: ".$_GET['token'];
but of course in console i always get
PHP Notice: Undefined index: token in /orders.php on line 3
Can someone help me out?