title: Code igniter routes making internal server error
body: <p>Been stuck on this for hours, hope it is not something to simple.</p>
  
  <p>So I'm trying to route 3 vars from one URL to another with this code:</p>
  
  <pre><code>$route['activate_email/(:any)/(:any)/(:any)'] = "user/activate/$1/$2/$3";
  </code></pre>
  
  <p>and the user controller code:</p>
  
  <pre><code>public function activate($code='', $email='', $id=''){
      die("1");
      //Check vars
      if(empty($code) || empty($email) || empty($id) || !is_numeric(ceil($id))){
          die("BAD");         
      }
  
      //Check details in DB
      $result = $this-&gt;db-&gt;query("SELECT * FROM `companies` WHERE `id` = ?", array($id))-&gt;result_array();
  
      print_r($result);
      exit;
  
  
  }
  </code></pre>
  
  <p>Result:</p>
  
  <p>Internal Server Error</p>
  
  <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
  
  <p>Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
  
  <p>More information about this error may be available in the server error log.</p>
  
  <p>Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
  Thanks for any help</p>