title: CodeIgniter - Routing urls with GET Variables
body: <p>I checked the similar questions out there, but those doesnt seem to help.</p>
  
  <p>I have an email verification like, that is to be routed in CodeIgniter to the right function with data passed to the function for further processing.</p>
  
  <p>Sample URL :</p>
  
  <pre><code>http://mysite.dev/verify/?id=emailaddress@gmail.com&amp;hash=562828a975740ac6820e40f7f61b4407
  </code></pre>
  
  <p>Current Route :</p>
  
  <p><code>$route['verify/(:any)'] = 'formcontroller/verification/$1';</code></p>
  
  <p>Function :</p>
  
  <pre><code>public function verification($slug)
      {
          parse_str(parse_url($slug, PHP_URL_QUERY), $fileds);
          var_dump($fields);
      }
  </code></pre>
  
  <p>The problem is, I get a 404 when I try the url listed above. I get <code>Message: Undefined variable: fields</code> when I try something like <code>http://amazon.dev/verify/asdasdasd</code></p>
  
  <p>Can someone point me in the right direction? </p>
  
  <p><strong>ADD : If there is no <code>?</code> in the url, it works. But for the standard of a get query url should be, I would like like to know how to solve this</strong> </p>