The RewriteCond is different for the case of using a query string. A second RewriteCond is used for the string thus two RewriteCond
# Redirect Query String
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} ^/specific/url/
RewriteCond %{QUERY_STRING} key=value
RewriteRule (.*) /path/ [R=301,L]
</IfModule>
Or, you could redirect the URI and grab the %{QUERY_STRING} to make it a new path for the 301 in the RewriteRule.
RewriteCond %{REQUEST_URI} ^/specific/url/
RewriteCond %{QUERY_STRING} ^intDepartmentId=(.*)$
# intDepartmentId is the only variable so the
# query string starts with int... ^ denotes start
# and the value (.*) is everything after the = ... $ denotes to the end
RewriteRule HTTP://example.com/path/%1 [R=301,L]
# resulting in 301 to /path/value_of_intDepartmentId
If you have FTPS or SSH you should have access to the .htaccess file? And that appears to be available according to Odoo website?
If the redirect is being done in a old-site.conf the redirects can be placed in the conf instead of the .htaccess, which may be what is happening? and the translation of don't have access, (which .htaccess file) Old one? ... Where is the redirect being generated?
And yes you can redirect everything in the intDepartmentID to a new URL, which might be your use case?
# match everything with a query string of intDepartmentID
RewriteCond %{QUERY_STRING} ^intDepartmentId=(.*)$
RewriteRule HTTP://example.com/path/%1 [R=301,L]