Copied to clipboard

Flag this post as spam?

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


  • Linx 98 posts 258 karma points
    Sep 01, 2023 @ 09:07
    Linx
    0

    Friendly URLs in Umbraco 10

    Hi

    I'm using Umbraco 10 with all updates.

    I have a page where the URL is

    Https://localhost/customers?type=1&country=4

    How could I change this to become a friendly URL? I read through the documentation but would like an example as I might not be understanding this? Should it be by IIS or is there a add-in that I could install?

    Thank you

  • Luuk Peters 85 posts 330 karma points
    Sep 01, 2023 @ 09:56
    Luuk Peters
    0

    I don't have a quick answer for you. But I guess you want an URL like for example: https://localhost/customers/danmark/1? If you want that you need to implement custom routing.

    What do the parameters do? Is it a list if customers that are filtered by type and country? If so, I don't see why having there querystring parameters are a bad thing. If it's for filtering, this URL looks perfectly 'friendly'.

  • Linx 98 posts 258 karma points
    Sep 01, 2023 @ 11:45
    Linx
    0

    Hi

    Yes, it's something similar to that wear in after.

    If it's custom routing how do I set this up? Is it through the config file or something similar

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 01, 2023 @ 12:39
    Huw Reddick
    0

    You could just use rewrite rules, depending what you are after. This post might help https://our.umbraco.com/forum/umbraco-8/96919-pagination-friendly-url it's about paging but should give you a general idea.

Please Sign in or register to post replies

Write your reply to:

Draft