URL Rewrite/ASP.NET routing withouth .ASPX extension

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 лет назад
I just want to know if anyone succeeded in having the 2.1 version render URLs without the .aspx extension.

Something like:

<shop>/my_category/my_product/

withouth any category ID or any product ID.

I get all sort of errors if I try to update the Infrastructure.RouteProvider and remove the IDs from the route.

Any thoughts?

Thanks
12 лет назад
They are already without aspx extension. See demo
12 лет назад
You're right, sorry for that, it was my local dev settings and the hosting settings issue.

However, if I remove the IDs from the URLs I get all sort of errors.

I'm a newbie at MVC, could it be bcause MVC needs to have an ID?

Thank you A.M.!
12 лет назад
MVC doesn't need ID. nopCommerce needs it. It finds products and other entities by identifiers.
12 лет назад
got it, thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.