Options +FollowSymLinks RewriteEngine On RewriteRule "^(css|resources|scripts|locale)/(.*)$" src/$1/$2 [L] RewriteRule "^((.*)bar.xml|favicon.ico|robots.txt)$" src/$1 [L] RewriteCond %{REQUEST_FILENAME} !index.php|tests/.*$|src/(favicon.ico$|robots.txt$|yioopbar.xml$|(css|scripts|resources/.*$|locale/.*$)) RewriteRule ^ index.php [L]