I have the following problem, while using the rule below my default directory is changed and my js and css files stop working.
<rule name="Produtos Detalhe">
<match url="^(produto)\/(.*)\/(.*)\/?$" />
<action type="Rewrite" url="/Produto/Detalhe?id={R:3}" />
</rule>
Example, this code:
<link href="@Href("~/Content/Site/css/bootstrap.min.css")" rel="stylesheet">
It looks like this after rendering:
<link href="/produto/Content/Site/css/bootstrap.min.css" rel="stylesheet">
I would like you to stay:
<link href="/Content/Site/css/bootstrap.min.css" rel="stylesheet">