The below Sinatra code works with URLs like: /c/blahblah and /c/http://blah.com/something.php or /c/google.com But doesn't work with: /c/http://google.com?id=47&q=blahblah all you get shown is: "http://google.com" in the above case. How can I get all of the values given in the URL that I'm giving to the app ??