DirectoryIndex index.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} >"/git/" RewriteRule ^.* git-handler.cgi/$0 [QSA,L,PT]