Copied to clipboard

Flag this post as spam?

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


  • mizzle 90 posts 325 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 1749 posts 6114 karma points MVP 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

Please Sign in or register to post replies

Write your reply to:

Draft