Redirects for URLs RRS feed

  • Question

  • I'm pretty sure this is not the correct location for this so please recommend another option.

    I have many inbound URL's that need to be redirected to a friendly 404 page.  The URL's contain special characters so the redirect does not work.  

    Can someone recommend a solution?

    Thanks in advance.

    • Moved by CoolDadTx Tuesday, December 15, 2015 3:55 PM Wrong forums
    Tuesday, December 15, 2015 11:53 AM


All replies

  • Hi,

    If you have special characters in the URL I would recommend you to encode the URL's like:


    Tuesday, December 15, 2015 1:06 PM
  • I would advice against the above (cause Microsoft fro some reason does not comply to URL Encoding Standards for some reason)

    But i cannot give an answere, cause i don't know what kind of project you use and therefore how a redirect would need to be implemented.

    (For example in WCF there won't be a need to redirect, you could just send the HTML page, only the javascript on the client would need to set the HTML as the pages content then).

    Please be so kind to close your Threads when you found an answer, these Threads should help everyone with similar issues.
    You can close a Thread via the"Mark as Answer" link below posts. You can mark your own posts as answers if you were not helped out but found a solution, in such a case, please provide the answer.
    Happy coding
    PS: I assure everyone that I did not ever had the desire to offend anyone.

    • Edited by MDeero Tuesday, December 15, 2015 3:31 PM
    Tuesday, December 15, 2015 3:30 PM
  • Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).
    • Proposed as answer by Just Karl Tuesday, December 15, 2015 5:22 PM
    • Marked as answer by Dave PatrickMVP Saturday, December 19, 2015 4:16 AM
    Tuesday, December 15, 2015 3:55 PM