While not directly related to the above, I found this page seeking how to access REST style domain.com?key1=value1&key2=value2 type parameters. After reading the page and comments, want to add this to help others who might find themselves here seeking the same solution.
Given: domain.com?key1=value1&key2=value2
echo $_GET['key2']; // output: 'value2'
PHP makes this easier than just about any other language IMO.