Copied to clipboard

Flag this post as spam?

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


  • mizzle 91 posts 326 karma points
    Apr 18, 2023 @ 16:35
    mizzle
    0

    Rewriting a querystring URL to a standard URL?

    Could anyone provide a straightforward step-by-step guide for how to rewrite -- not redirect -- URLs with querystrings to standard URLs with paths?

    For example, if I want /news?cat=1 to look like the URL is /news/local/ -- the /news/local/ page would not actually exist, but the code displaying content related to the querystring will still need to "read" that querystring in order to show the code.

    I am brand new to .Net Core/V9+ and it seems like a lot is different from when I've managed to do this with older Umbraco versions.

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Apr 19, 2023 @ 07:44
    Huw Reddick
    0

    Hi mizzle,

    You will need to implement some custom routing, take a look at the docs here

  • 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