Resolved issue by creating another route to handle http://www.abc.com
public static void RegisterRoutes(RouteCollection routes)
{
routes.Ignore("{*allaspx}", new { allaspx = @".*\.aspx(/.*)?" });
routes.Ignore("{*allcss}", new { allcss = @".*\.css(/.*)?" });
routes.Ignore("{*alljpg}", new { alljpg = @".*\.jpg(/.*)?" });
routes.Ignore("{*alljs}", new { alljs = @".*\.js(/.*)?" });
routes.Add(new System.Web.Routing.Route("{resource}.css/{*pathInfo}", new System.Web.Routing.StopRoutingHandler()));
routes.Add(new System.Web.Routing.Route("{resource}.js/{*pathInfo}", new System.Web.Routing.StopRoutingHandler()));
routes.MapPageRoute(
"HomeRoute",
"",
"~/Default.aspx"
);
////For News
routes.MapPageRoute("NewsRoute", "{NewsID}/{PageID}/{NewsTitle}", "~/Latest-News-Details.aspx", false,
new RouteValueDictionary {
{ "NewsID", "0" },
{ "PageID", "0"},
{ "NewsTitle", "News-not-found" }},
new RouteValueDictionary {
{ "NewsID", "[0-9]{1,8}" },
{ "PageID", "[0-9]{1,8}" }
});
}
It is strange for me as same routing working for other website with creating another rount to handle such request http://www.abc.com