Linked Questions

Popular Questions

MVC home route to be default always as /shopping

Asked by At

Am trying to default my route on home page and make it show on Google.

My site is but I always want it to show

the default controller is home/index as normal. but the website shows as "" when i run it

How do I get shopping being defaulted.

I have tried changing the default route map but no luck.

    name: "Default",
    url: "{controller}/{action}/{id}",
    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
    namespaces: new[] { "MyNamespace.Controllers" }


public class HomeController : Controller

    public ActionResult Index()
        return View("Index");

When I start the project I want the URL to be as:

Related Questions