Hi,
The practical in-app solution is to let /p/whatever resolve to a Mendix page and then use an On page load nanoflow on that page to execute an Open URL action that navigates to /link/whatever. This works at the application level and is one of the viable approaches within Mendix, but it is not a true server-side URL rewrite.