How do I 301 redirect urls with variables. I have tried. Redirect 301 /forum/kb.php?mode=cat&cat=2 http://www.mydomain.com/rest-of-url.html without any success. (one line without any luck) Other redirects such as none www to www redirect works.
Are you trying to transform the URL into something more simple? If you are, you should do a Mod Rewrite instead of a 301.
GeorgeB Got it right. I want the SE:s to index the new .html pages and understand that the old forum/kb.php?mode=cat&cat=2 have been moved to the new .html pages. I tried cpanel redirects as well but cpanel strips the variables from the redirects.