title: Codeigniter Routing
body: <p>I'm trying to write an application that takes a parameter from the url and supplies it to the index function in the default controller. Then decides what to load depending on this parameter either a default home page or a custom page. </p>
  
  <pre><code>$route['(eventguide/:any)'] = 'eventguide';
  </code></pre>
  
  <p>This code works but only if I have the controller in the url like so:</p>
  
  <p>example.com/eventguide/(parameter)</p>
  
  <p>I don't want to include the controller name. So i'm not exactly sure how to route this.</p>
  
  <p>Ideally the url would look like example.com/(parameter), is this possible?</p>