Scenerio is that I want to hide the physical paths of javascript files in my MVC web application & I tried to do so as following in my RouteConfig!
routes.MapPageRoute("js", "js/base.js","~/scripts/applicationbase.js");
But, the path produces 404 error! And it worked when I removed the .js extension from the route like this:
routes.MapPageRoute("js", "js/base","~/scripts/applicationbase.js");
Does it means that a route with file extension can't be created? If not then how can I do that?