Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John 4 posts 24 karma points
    Oct 12, 2013 @ 10:36
    John
    0

    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?

  • John 4 posts 24 karma points
    Oct 12, 2013 @ 11:03
    John
    0

    I am writing by own 404 processor while I wait and see if anyone else has a different idea.

  • John 4 posts 24 karma points
    Oct 12, 2013 @ 11:37
    John
    0

    I solved this myself by writing my own implementation of umbraco.interfaces.INotFoundHandler.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies