title: Editing .htaccess redirects to Error 404 Object not found
body: <p>I am currently editing my .htaccess file to redirect any request to the public folder inside my project but Im just getting this error</p>
  
  <blockquote>
    <p>404 Object not found</p>
  </blockquote>
  
  <p>Below is the code in the .htaccess folder</p>
  
  <pre><code>RewriteEngine on
  
  RewriteCond %{REQUEST_URI} !^/public/
  RewriteRule (.*) /public/$1
  </code></pre>
  
  <p>Im not very well acquainted with htaccess code, what is wrong with this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Below is a summarized file structure in my project, if it helps</p>
  
  <pre><code>-projectfolder
  |
  |--.htaccess
  |
  |----includes
  |
  |----mvc
  |
  |----cache
  |
  |----public
  </code></pre>
  
  <p>Thanks in advance</p>