How MVC works is that you have registered Routes...
You have to make sure that the URL pattern you enter has a valid route that points to a controller that knows how to handle that url.
So first check the RouteConfig.cs
probably in your App_start
folder.
Say you have a news page. You could setup a route like (note that i simplified it):
route = routes.MapRoute(
name: "news",
url: "news/{nodeId}/{nodeName}",
defaults: new { controller = "News", action = "Detail", nodeName = UrlParameter.Optional }
);
In the News Controller your Detailed action method can retrieve the page based on type (news) and nodeID which is in the URL.
public ActionResult Detail(int nodeId, string nodeName)
{
/// ... some logic retrieving the model based on NodeID
return View("NewsDetail", model);
}
at this point you can setup your UrlPattern to be "news/{%NodeID%}/{%NodeAlias%}