UrlManager . Catch a GET stylish url

Hi everyone.

My problem now is how to make correct redirect from old site to a new one.

The old site has urls like /?getparam=value&param2=value2

The new one has /id/Alias. However the alias can be changed. Redirects have to be dynamic.

How can I catch my old url, to proccess by a controller that will be able to redirect for correct url?