vendredi 23 septembre 2016

Add default route in IIS

When I deploy my MVC3 web site on IIS 7.5 and click on browse (on port 80), my browser display the web site with localhost url (or serverName url) but my default route is like that :

public static void RegisterRoutes(RouteCollection routes)

        new { controller = "Home", action = "Index", lang = Thread.CurrentThread.CurrentUICulture.ToString().Substring(0,2)}


Is there an mean in IIS to have full url when I click on browse, i would like to automatically add /fr/Home/Index.


Aucun commentaire:

Enregistrer un commentaire