RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ web/$1 RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ web/index.php [QSA,L]
info at phpclasses dot org