I followed this guide and it works fine with my language support. Url's such as http://domain.com:33982/en-us/Test works great.
However my issue is that I want it to work with http://domain.com:33982/Test as well. I can't figure it out how to route it without the culture in the link... My routes in the RouteConfig.cs
routes.MapRoute(
name: "Default",
url: "{culture}/{controller}/{action}/{id}",
defaults: new { culture = CultureHelper.GetDefaultCulture(), controller = "Home", action = "Index", id = UrlParameter.Optional }
);
routes.MapRoute(
name: "MissingCulture",
url: "{controller}/{action}/{id}",
defaults: new { culture = CultureHelper.GetDefaultCulture(), controller = "Test", action = "PageMissing", id = UrlParameter.Optional }
);
I don't really understand why it doesn't work. When I go to /Test to just redirects me to the default Home/Index.
Any suggestions? Thanks