title: Codeigniter showing 404 Page Not Found on Hostgator
body: <p>I'm currently testing my Codeigniter Project on my own Hostgator account. The project works well on my WAMP server but it shows a 404 Page Not Found error when online on Hostgator. I've tried playing around with the file permissions on FTP to playing around with the .htaccess file. The current site can be viewed here: www.test.jeffreyteruel.com. </p>
  
  <p>Here's a look at my .htaccess file: </p>
  
  <pre><code>RewriteEngine on
  RewriteCond $1 !^(index\.php|resources|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
  </code></pre>
  
  <p>My current file structure: </p>
  
  <pre><code>-application
  -assets (css/js/img files) 
  -cgi-bin(from the server) 
  -system
  -uploads
  -.htaccess
  -index.php
  </code></pre>
  
  <p>Here's my current config.php info: </p>
  
  <pre><code>$config['base_url'] = 'http://test.jeffreyteruel.com'; 
  $config['index_page'] = '';
  $config['uri_protocol'] = 'AUTO';
  </code></pre>
  
  <p>The default controller on the route.php file is: $route['default_controller'] = 'main';</p>
  
  <p>Main Controller (main.php): </p>
  
  <pre><code>&lt;?php defined('BASEPATH') OR exit('No direct script access allowed');
     class Main extends CI_Controller {
        public function __construct() 
        { 
           parent::__construct(); 
           //insert model here    
           $this-&gt;load-&gt;model('main_model'); 
           date_default_timezone_set('Asia/Manila');       
         } 
        public function index()
        { 
          $content['main_content'] = 'home/home'; 
          $this-&gt;load-&gt;view('main',$content);
        } 
    ...  
    ?&gt; 
  </code></pre>
  
  <p>Any help to get the site showing properly would be appreciated. </p>