redirect to custom profile panel page of individual users
Panels provides a built-in way to override user profiles-- look for the link (disabled by default) in Page Manager called user_view (User Profile Template).  Instead of using your own custom profile page, enable this page override (User Profile Template) and make your changes to that panel.

Then, to link to user profiles, you can just use the standard user profile links, no rewriting needed.