There is a task to replace one variable for another in URLs with GET-variables (the difference is only in the case of characters). For a single page, it looks like this:
RewriteCond %{QUERY_STRING} ^categoryid=418$ RewriteRule ^index\.php$ http://www.site.ru/index.php?categoryID=418 [R=301,L] How to write a rule for any category number, taking into account the fact that there may be other variables in the string after categoryID ?