title: Allow access to folder which is inside the \application\ folder in Codeigniter
body: <p>I was wondering, how i could give access to the public to files placed within a folder called 'Sample' which is placed inside /applications/views/ . </p>
  
  <p>I tried to to do it using .htaccess file. </p>
  
  <p>This is the <strong>.htaccess</strong> file that im using right now.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /0.9.1
  
  #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|application\views\Sample\/public)
  RewriteRule ^(.*)$ index.php/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Any help would be appreciated. Thank you.</p>