<IfModule mod_rewrite.c> Options -MultiViews +SymLinksIfOwnerMatch RewriteEngine On #RewriteBase /path/to/gitlist/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L,NC] </IfModule> <Files config.ini> order allow,deny deny from all </Files>