title: .htaccess the requested url /public/index was not found on this server
body: <p>Hello there i just finished setting up my server and all my code files but im having a problem. Whenever i go to <a href="https://www.frindse.com/index" rel="nofollow">https://www.frindse.com/index</a> it gives me a error that says that the /public/index file is not found.</p>
  
  <p>The way my site is setup is all the requests goes to the public folder which holds my index.php file that routes all of my pages. Not on my local server everything works flawlessly but on my digitalocean server whenever i go to the index page it doesn't works. But if i go to <a href="https://www.frindse.com/login" rel="nofollow">https://www.frindse.com/login</a> the pages loads perfectly. So this is how my .htaccess file looks in my public folder which routes all my pages and requests:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  
  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Also here is the .htaccess file thats in the root of my website. It routes all the calls to the public folder:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
      RewriteRule    ^$    public/    [L]
      RewriteRule    (.*) public/$1    [L]
   &lt;/IfModule&gt;
  </code></pre>
  
  <p>Also keep in mind that i have mod_rewrite activated on my server and also i have set AllowOverride set to All in my digitaloceans erver.</p>