RewriteCond %{REQUEST_URI} !\.(jpg|gif|png|js|css|vcf|php)$ [NC] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ([^&;]*) /index.php?q=$1&%{QUERY_STRING} [L]