Copied to clipboard

Flag this post as spam?

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


  • denisedelbando 141 posts 339 karma points
    Dec 07, 2021 @ 14:50
    denisedelbando
    0

    What happened to urlrewriting in umbraco 8?

    We are porting an old project to umbraco 8. Umbraco 9 wasn't stable yet when we started so its too late now.

    Anyway, one of the features is the urlrewriting.config

    Syntax looked like this

    <add name="productspecialrequest"
            virtualUrl="^~/product/category/(.*)"
            destinationUrl="~/product/category.aspx?pname=$1"
            ignoreCase="true" />
    

    or

    <add name="productspecialrequest2"
            virtualUrl="^~/product/category/(.*)/(.*)"
            destinationUrl="~/product/category.aspx?pname=$1&something=$2"
            ignoreCase="true" />
    

    We liked this version because we just pass it in a query string then it catches anything after /category/ then use this to search for content from another non-umbraco database.

    How do you do this now in umbraco 8?

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Dec 07, 2021 @ 15:16
    Søren Kottal
    0

    UrlRewriting.net was removed in 7.6.

    For v8 you can use IIS Url Rewrites instead: https://www.iis.net/downloads/microsoft/url-rewrite

    For v9, it depends on your hosting setup.

  • denisedelbando 141 posts 339 karma points
    Dec 07, 2021 @ 17:31
    denisedelbando
    0

    what is a better way, iis url rewrites or icontentfinder? like this

    https://our.umbraco.com/forum/using-umbraco-and-getting-started/102851-virtual-content-and-custom-url

Please Sign in or register to post replies

Write your reply to:

Draft