I have tried using the Url Rewriter but it seems to be processed before matching umbraco nodes, so it catches everything. I need it to try and redirect to a profile if it can't match any of the umbraco items first.
Does anyone know how you would you do this umbraco?
How to I redirect /username to /profile?id=username ..?
I couldn't find a solution in any other post, so I thought I would ask here.
From the root level imagine you want to be able to access each website members page by their username at the root level. So:
/John
/Ben
/Tom
And behind the scenes it would redirect to a common profile page for rendering:
/profile?username=John
/profile?username=Ben
/profile?username=Tom
I have tried using the Url Rewriter but it seems to be processed before matching umbraco nodes, so it catches everything. I need it to try and redirect to a profile if it can't match any of the umbraco items first.
Does anyone know how you would you do this umbraco?
I am writing by own 404 processor while I wait and see if anyone else has a different idea.
I solved this myself by writing my own implementation of umbraco.interfaces.INotFoundHandler.
is working on a reply...