title: Codeigniter 4: Access the application from main folder
body: <p>My application structure is like:</p>
  
  <pre><code>wamp/www
          /project
              /app
              /public
              /system
              /writable
  </code></pre>
  
  <p>I am able to access the application from <a href="http://localhost/project/public" rel="nofollow noreferrer">http://localhost/project/public</a>. However, <a href="http://localhost/project" rel="nofollow noreferrer">http://localhost/project</a> shows index of project.</p>
  
  <p>I tried putting .htaccess file in the project folder.</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /project/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ public/index.php/$1 [L]
  </code></pre>
  
  <p>It is also not working.</p>
  
  <p>How do I make the application accessible from the project folder.</p>