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

Asked

Viewed 119 times

-2

Good morning, I’m having a problem when I will post a news of my site on facebook, it adds a parameter at the end of my URL(www.ex.com/noticia/ex-noticia?ex=123). That(ex=123) makes my site not find the page. I’m using Dotnet someone has a Light? Thank you

  • Do you add the parameter to your URL or is it the code at some point that does it? It’s not clear to me

  • Thanks for the comment Math, Facebook itself that does this. For what I was searching it adds the parameter fbclid due to google Analytics.

  • What comes after "?" is an http request parameter, which in itself should not prevent you from opening the page. What status code the request returns?

  • If it is something that can help other people post as an answer, if it was a trivial mistake can speak here in the comments that hence I close the question

  • I posted as an answer, I think it can help someone. Again thanks for the attention.

1 answer

1

Thanks for the strength Math, I got it right.

The Resolution was as follows. No 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 just took it out and it worked, and it stayed that way.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.