views:

50

answers:

1

I'm coding some web-applications in MVC, and I have a problem with something that has been on my mind for a time. The web-aplications I'm developing are mostly going to be used in Swedish, and because of the language I want to have my URL routing mapped against Swedish URL names.

  • mysite.com/products/details/1 (English URL)
  • mysite.com/produkter/detaljer/1 (Swedish URL)

Is there any way that you can have language independent URL routing that map against the same controllers/views/actions? Because I also want to have the same controllers/views/actions to be reused in sites in different languages, such as English.

The reason that I want to have the same language on the URL and the content on the pages is that it gives a easier understanding for the visitor and it increase the pagerank and search engine optimization.

+1  A: 

You could have one controller that all requests are passed to and then that controller redirects to the appropriate controller based on some kind of mapping logic.

Probably doing that is more effort than the results are worth though.

RichardOD
+1 for:Probably doing that is more effort than the results are worth though.
Malcolm Frexner
Thanks- the more I think about it, that probably becomes a definitely!
RichardOD