Copied to clipboard

Flag this post as spam?

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


  • Danny 9 posts 28 karma points
    May 21, 2014 @ 12:11
    Danny
    0

    URL rewrite for Umbraco not working

    For pages that are loaded with dynamic content I try to get some friendly URLs instead of a detail.aspx with a bunch of parameters in the querystring. What I have now is something like domain.tld/url.aspx?user=Danny&place=ehv&number=9

    What I want is something like domain.tld/Danny/ehv/9

    Therefor I have added a rewriterule to the urlrewriting.config

    add name="testrewrite" virtualUrl="^~/url/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/detail.aspx?number=$1" ignoreCase="true" />

    To try it at first only with a single parameter in the querystring, but it doesn't seem to do anything when I navigate to the detailpage, it doesn't change the URL in the addressbar.

    I have tried looking for tutorials, but none of them really make it clear if there is anything else that has to be done to rewrite URLs and where this needs to go.

    A bump in the right direction would be greatly appreciated.

Please Sign in or register to post replies

Write your reply to:

Draft