title: Simple URL Routing not working with CodeIgniter
body: <p>I am fairly new to CodeIgniter and finishing up my first project. However, before I put it up on my hosting site I would like to clean up the URL's using the routes.php file that CodeIgniter provides in the config folder.</p>
  
  <p>My site will load using the following urls:</p>
  
  <pre><code>http://fakehost:8888/TheWorksPlumbing/index.php/theWorksPlumbingController/index/home
  http://fakehost:8888/TheWorksPlumbing/index.php/theWorksPlumbingController/index/about
  http://fakehost:8888/TheWorksPlumbing/index.php/theWorksPlumbingController/index/services
  </code></pre>
  
  <p>and it will also load the homepage by using the default controller url of: <code>http://fakehost:8888/TheWorksPlumbing/</code></p>
  
  <p>However, I want to have a url for each page of the site but cannot get it to work. For example I would like to have:</p>
  
  <pre><code>http://fakehost:8888/TheWorksPlumbing/home
  http://fakehost:8888/TheWorksPlumbing/about
  http://fakehost:8888/TheWorksPlumbing/services
  </code></pre>
  
  <p>Here is the code for the theWorksPlumbingController Controller file:</p>
  
  <pre><code>class TheWorksPlumbingController extends CI_Controller {
  
      public function index($page = 'home'){
  
          if ( !file_exists('application/views/'.$page.'.php') ) {
              show_404();
          }
  
          $this-&gt;load-&gt;view('templates/header');
          $this-&gt;load-&gt;view($page);
          $this-&gt;load-&gt;view('templates/footer');
      }
  }
  </code></pre>
  
  <p>Here is the code in my routes.php file that is not working:</p>
  
  <pre><code>$route['default_controller'] = "theWorksPlumbingController";
  $route['404_override'] = '';
  $route['(:any)'] = "index.php/theWorksPlumbingController/index";
  </code></pre>
  
  <p>What do I need to add or change to get the site to just load /home or /about or /services?</p>