title: Codeigniter default controller not working
body: <p>I have almost finished a web application using Codeigniter. In development, the root directory is <strong>/readme/</strong> and I use the following code in .htaccess to eliminate index.php in the URL: </p>
  
  <pre><code>RewriteEngine On
  RewriteBase /readme
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php/$1 [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>I also set <strong>Readme_home</strong> as the default controller, so the following URL will directly points to the default controller:</p>
  
  <pre><code>http://localhost/readme
  </code></pre>
  
  <p>For production, I use the exact same configuration as the one for development but the following URL does not work and produce '<strong>Directory access is forbidden</strong>' error:</p>
  
  <pre><code>http://www.mydomain/readme
  </code></pre>
  
  <p>Instead, I have to use </p>
  
  <pre><code>http://www.mydomain/readme/readme_home
  </code></pre>
  
  <p>for the default controller to appear. Is there any missing configuration? If anyone can point out any reference on the web about this problem, that would be good enough. Let me know if I have to add additional information. Thank you sir, and I really appreciate it. </p>