Page not found if I put parameters at the end of the URL

-2

Good morning, I'm having a problem when I'm going to post a news article on my facebook page, it adds a parameter at the end of my URL (www.ex.com/noticia/ex-noticia? ex = 123 ). This ( ex = 123 ) causes my site to not find the page. I'm using Dotnet does anyone have a Light? Thanks

    
asked by anonymous 25.10.2018 / 14:02

1 answer

1

Thanks for the strength Math, I managed to correct.

The Resolution was as follows. In Web.config:

<rewrite url="^/noticias/(\S+)/(\d+)/?$" to="~/noticias/noticia.aspx?codigo=$2&amp;galeria=$3"/>

The problem was in the " $ " that delimited my friendly URL. I simply removed it and it worked, staying like this.

<rewrite url="^/noticias/(\S+)/(\d+)/?" to="~/noticias/noticia.aspx?codigo=$2&amp;galeria=$3"/>
    
25.10.2018 / 14:37