I just moved my application under a virtual path on my local iis 7.0 so that I can host multiple sites.. Routes are not working part from the main page
They seem to ignore the virtual path I created and going to the root - eg:
instead of http://localhost/virtualpath/product/5
goes to http://localhost/product/5
I seem to be missing something very fundamental?
routes.MapRoute(
"Products",
"Products",
new { controller = "Product", action = "Index" }
);
routes.MapRoute(
"ProductDetails",
"Product/{id}/{name}",
new { controller = "Product", action = "Details", id = -1, name = "" }
);
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);