title: Setup CodeIgniter site on Godaddy hosting
body: <p>I am trying to upload my code-igniter site on Godaddy hosting.
  but getting 404 page not found error.</p>
  
  <p><strong>Project structure</strong></p>
  
  <blockquote>
    <p>root/public_html/project</p>
  </blockquote>
  
  <p>I am trying to access the project at www.site.com/project</p>
  
  <p><strong>My .htacess file</strong></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><strong>Important things in config.php</strong></p>
  
  <pre><code>$config['base_url'] = '';
  $config['index_page'] = '';
  $config['uri_protocol'] = 'REQUEST_URI';
  $config['allow_get_array'] = TRUE;
  $config['enable_query_strings'] = FALSE;
  </code></pre>
  
  <p><strong>Important things in routes file</strong></p>
  
  <pre><code>$route['default_controller'] = 'main';
  </code></pre>
  
  <p>I have tried so many .htacess files and config edits but couldn't sort the issue out. Please help </p>