RewriteCond %{REQUEST_URI} !^databank/(stylesheets|images|skins)/ RewriteCond %{REQUEST_URI} !^databank/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^databank/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^databank/ # Rewrite anything not matched by the rules above. RewriteRule ^databank/(.*)$ /databank/index.php/$1 [L,QSA]