I have big issue, that I can't seem to solve.

While converting to a new structure on my webshop, I've gotten some incorrect links, that Google sees. I want to tjeck those incorrect links and redirect with 301 to the right link. But it's like "id" doesn't exists i the URL.

Google sees:
/produkter/taske?id=19

Htaccess rewrites it from:
default.asp?t=v isprodukt&url=t aske?id=19...