0

I want to identify categories in my site in url not by id, but by its name. When i'm adding category, which name contains "+" symbol - i have 404 error. This situation is on product internet server, when i'm deploying on local visual studio server - all work fine. Please, suggest me smth.

Example:
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Catalog", id = "" }
);

http://wazy.ru/Catalog/Category/18+

4
  • The "+" symbol is a perfectly valid url character. Is it just these pages that return a 404? Commented Mar 2, 2010 at 9:12
  • yes. i think, that my iis server is configured so, because is i wrote on local visual studio category page displayed Commented Mar 2, 2010 at 9:19
  • Please can you list the route and the url you're trying to throw at it? Commented Mar 2, 2010 at 10:54
  • your PLUS sign in this case probably shouldn't be transformed into a space. This is probably the case. But it should still not throw a 404, unless you do something like that in your code. Commented Mar 2, 2010 at 12:51

1 Answer 1

1

Server wont throw 404 error when category names wrong. I think IIS cannot reach-invoke controller or action. Maybe this link help to figure out how to deploy.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.