You could use php and do the redirect on the products.php page directly. It seems like .htaccess would work as well. You would have to use the RewriteCond line to matcht the url parameter portion. See:
http://statichtml.com/2010/mod-rewrite-baseon-on-query-string.html