I have an area in my project named Fa
in my fa
area i have a controller named home
and inside my controller i have an action named index
.
I published my website but when i type my url i couldn't see my website ,because it should be redirected to mywebsite.com/en/home/index
.How can i set this url in my MVC Project
I tried this one but it doens't work.
var route = routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
).DataTokens = new RouteValueDictionary(new { area = "fa" });