Options +FollowSymLinks -MultiViews
RewriteEngine On

# Block access to README.md
<FilesMatch "^(README\.md|LICENSE)$">
    Order allow,deny
    Deny from all
</FilesMatch>

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

RewriteRule ^(.*)\.(php|cgi|txt)$ index.php?q=$1 [L,QSA]