Forum Moderators: phranque
RewriteCond %{QUERY_STRING} .
RewriteRule ^index\.php http://www.example.com/$1? [R=301,L] ^\DIRECTORY matches a digit followed by IRECTORY. It does not match the letter D at all. ^\DIRECTORY\.+ requires there be a period after the folder name. That's the \. in the code. The + means one or more. ^\DIRECTORY\.+ would match "3IRECTORY......." where "..." is LITERAL periods. ^index\.php.+ which simply means "If there is any stuff whatsoever after 'index.php'No, not "anything whatsoever". Only more path stuff. It will not match any type of appended query string data.
\DIRECTORY matches a digit followed by IRECTORY. It does not match the letter D at all.
RewriteRule ^index\.php http://www.example.com/$1?
No, not "anything whatsoever". Only more path stuff. It will not match any type of appended query string data.