Copied to clipboard

Flag this post as spam?

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


  • Barbacan 29 posts 79 karma points
    Aug 27, 2014 @ 09:29
    Barbacan
    0

    6.2.1 Urlrewritingnet custom rule is not fired

    Hi, I would like to apply a rewriting rule so for every url like:
    http://example.com/attivita/2014

    the client is forwarded to:
    http://example.com/attivita/2014/full-list

    the variable is the year. I write this rule:

    <add name="listaPerAnnoUrl" virtualUrl="^~/attivita/(.[0-9]*){1,4}/lista-completa-attivita" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/attivita/$1" ignoreCase="true" redirectMode="Permanent" />

    this is the tree:


    but it doesn't work. I've also tried to set again the file extension "/attivita/$1.aspx" because those node "2014" is an aspx file but nothing changed, no redirect is made. Any hints?

  • 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