RewriteCond %{QUERY_STRING} ^$ RewriteRule ^index\.php$ / [R=301]