like this
for /content/site.css
if you want to always goto site.css:
routes.MapRoute(
"Area1", // Route name
"/{action}/site.css", // URL with parameters
new { controller = "Area1", action = "content" } // Parameter defaults
);
and if you want to goto different css by providing css name:
routes.MapRoute(
"Area1", // Route name
"/{action}/{resource}.css", // URL with parameters
new { controller = "Area1", action = "content", resource = UrlParameter.Optional } // Parameter defaults
);
for /content/area1/site.css
routes.MapRoute(
"Area1", // Route name
"/{action}/Area1/{resource}.css", // URL with parameters
new { controller = "Area1", action = "content", resource = UrlParameter.Optional } // Parameter defaults
);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…