title: Codeigniter .htaccess: Give public access to all files and folders inside the 'public' folder
body: <p>I'm using Codeigniter 2.0.3 | Apache 2.2.17 | PHP 5.3.4.</p>
  
  <p>I'm want to give access to all the files and subfolders inside the 'public' folder. I've read the articles in the Codeigniter wiki and also all first 5 pages on google results and found nothing that works.</p>
  
  <p>This is the files tree:</p>
  
  <pre><code>- application
      - public
          - css
              - style.css
          - img
          - js
  - system
  - .htaccess
  </code></pre>
  
  <p>And this is the .htaccess I'm using to remove 'index.php' from the URL and try to give access to the folder:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /CodeIgniter_2.0.3
  
  #Removes access to the system folder by users.
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php/$1 [L]
  
  #Checks to see if the user is attempting to access a valid file,
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  #Enable access to the images and css folders, and the robots.txt file
  RewriteCond $1 !^(index\.php|public|robots\.txt)
  RewriteRule ^(.*)$ index.php/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>The website is working and 'index.php' is no longer needed in the URL, but the last condition is supposed to give access to the public folder, but its not working for me, so this <code>http://localhost/CodeIgniter_2.0.3/public/css/style.css</code>
  file is not found.</p>
  
  <p>In config.php I have:</p>
  
  <pre><code>$config['base_url'] = 'http://localhost/CodeIgniter_2.0.3/';
  $config['index_page'] = '';
  </code></pre>
  
  <p>Please help.
  Thanks!!!</p>