Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, I would like to apply a rewriting rule so for every url like:http://example.com/attivita/2014the client is forwarded to:http://example.com/attivita/2014/full-listthe 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?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
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?
is working on a reply...