I have a RouteMap
containing:
routes.MapRoute(
name: "StaticContent",
url: "{action}/{controller}/{type}/{content}",
defaults: new { controller = "Admin", type="img", content="logo.png", action = "Content" }
);
and the handler:
public void Content()
{
Response.Redirect("/Signin");
}
However, when I access this URL:
http://localhost:55306/Content/Admin/img/logo.png
I can still view the image.
I expect I will be redirected to the Signin page every time I access the URL above.
Any thoughts?