atakanozbancom/App_Start/RouteConfig.cs

33 lines
983 B
C#
Raw Permalink Normal View History

2026-02-13 23:40:52 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace atakanozbancom
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
// Keep old /affiliate URLs working
routes.MapRoute(
name: "AffiliateRedirect",
url: "affiliate/{action}/{id}",
defaults: new { controller = "support", action = "Index", id = UrlParameter.Optional },
new[] { "atakanozbancom.Controllers" }
);
2026-02-13 23:40:52 +01:00
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "main", action = "Index", id = UrlParameter.Optional },
2026-02-13 23:40:52 +01:00
new[] { "atakanozbancom.Controllers" }
);
}
}
}