Hey everyone, quick question with a small issue that I am running into. It would seem that I have an issue with my htaccess setup, as the indexAction on my IndexController is being invoked when it is trying to load resource files. Here is the basic structure of the app
www-root
.htaccess-1
application/
controllers/
etc.../
public/
.htaccess-2
css/
js/
img/
index.php
htaccess-1 has the following
Options -MultiViews
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
htaccess-2 has the following
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
So the problem is that when I load the index page the controller runs 4 times. Once for the request when it should, but then also for /public/css/bootstrap.min.css, /favicon.ico and /public/css/font-awesome.min.css.
My thinking is that it should only run once, and Apache should see "hey, those files exist let me just send them" but maybe I am missing something. This is on a Linux box, PHP 5.5, Apache 2.4. the page looks fine, so it is loading the css files but invoking the IndexController each time.
What did I miss?