Options +FollowSymLinks RewriteEngine on RewriteCond $1 !^(index\.php|themes/.+|robots\.txt) [NC] RewriteRule ^(.*)$ index.php?q=$1 [L]