RewriteEngine On RewriteCond %{REQUEST_URI} !.*index\.php$ RewriteCond %{REQUEST_URI} !.*/media/.* RewriteRule .* /panacea/src/index.php [L]