When building a multi-lingual website (with ASP.NET web forms), I'll use an HTTP module to rewrite the URLs to end up with something friendly (for humans & search engines) like:
uk/products/product_category_one/sub_category_one/index.aspx
uk/products/product_category_one/sub_category_one/widget_mk5.aspx
es/productos/categoría_de_producto_una/widget_mk5.aspx
My (newbie) understanding of MVC is that the URL should take the format of
Controller / Action / Identifier
so replicating the functionality above with MVC will end up with URLs similar to:
products/category/123/product_category_one/sub_category_one
products/items/456/widget_mk5
Questions..
- Can I insert a country code into the URL before the 'controller' segment?
- Is it possible to map 'products' and 'productos' to the same controller?
Thanks for your help
Edit: In addition to Panos' answer below I found more information on the ASP.NET Website.