title: CodeIgniter htaccess 403
body: <p>I'm working with CodeIgniter. I would like to delete the index.php part from the url.
  I'm using CentOS.</p>
  
  <p>My Apache config is:</p>
  
  <pre><code>&lt;Directory "/var/www/html"&gt;
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>My files are located in:
  /var/www/html/project/site/
  Then the url is:
  example.com/project/site/</p>
  
  <p>My htaccess is:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>That comes from the official wiki.</p>
  
  <p>I have created a Site.php controller with a Site class.
  If I go to example.com/project/site/site it loads the pages, however the CSS and img files (located in views/template/) don't load because of a 403 permission denied error.</p>
  
  <p>However, if I change AllowOverride All in AllowOverride None and then I go to:
  example.com/project/site/index.php/site</p>
  
  <p>It works, so the permission on the files are ok.</p>
  
  <p>By the way, this is my config.php file:</p>
  
  <pre><code>$config['base_url'] = 'http://ipserver/project/site/';
  $config['index_page'] = '';
  $config['uri_protocol'] = 'REQUEST_URI';
  </code></pre>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>Adding Satisfy Any in the config httpd file seems to work.</p>