Can backslash be encoded correctly in URL with URL rewrite?
Posted
by Millionbonus
on Stack Overflow
See other posts from Stack Overflow
or by Millionbonus
Published on 2010-05-19T10:08:30Z
Indexed on
2010/05/19
10:10 UTC
Read the original article
Hit count: 314
I am working on a ASP.NET MVC2 project. The problem is when a string which would be rewritten into URL that contains special character such as backslash or question mark. That will make URL wrong, even I have encoded it before. For example: 1. I have a product id "p001/2-2". 2. I encoded it into "p001%252f2-2" 3. The URL http://domain.com/ProductView/p001%252f2-2 will response HTTP Error 400 - Bad Request.
How can I get it correct?
© Stack Overflow or respective owner