title: Hosting Codeigniter site on GoDaddy with shared hosting
body: <p>Directory structure (<code>public_html</code>)</p>
  
  <pre><code>public html
  htpasswds
  application
      .htacess
  cgi-bin
  system
  user_guide
  index.php
  </code></pre>
  
  <p>Configuration file looks like this:</p>
  
  <pre><code>$config['base_url'] = 'http://www.example.com/index.php/';
  $config['index_page'] = 'index.php?';
  $config['uri_protocol'] = 'AUTO';
  $config['allow_get_array']      = TRUE;
  $config['enable_query_strings'] = FALSE;
  </code></pre>
  
  <p><code>.htaccess</code> file</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php?$1 [L]
  </code></pre>
  
  <p><code>route.php</code></p>
  
  <pre><code>$route['default_controller'] = 'welcome';
  </code></pre>
  
  <p>Under <code>application-&gt;controllers</code> I have two PHP files, <code>welcome</code> and <code>about</code> with methods in them.</p>
  
  <p>Below are the links I am generating, which are </p>
  
  <pre><code>&lt;li&gt;&lt;a href='./welcome'&gt;Home&lt;/a&gt;
  &lt;li&gt;&lt;a href='./welcome/first'&gt;first&lt;/a&gt;&lt;/li&gt;    
  &lt;li&gt;&lt;a href='./welcome/second'&gt;second&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='./third'&gt;Third&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='./fourth&gt;Four&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='./five'&gt;Five&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href='./six'&gt;Six&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>If I manually type <code>http://www.example.com/index.php/welcome/second</code>, I can access the page.
  But I don't know how to generate the links for the same, and how to get rid of <code>index.php</code> in the URL.</p>