Merhaba arkadaşlar, bir tane .net core mvc web projem var *.r10.net üzerinden gelen kullanıcılar için index2 sayfası açılmasını istiyorum diğer gelen ziyaretler için index'e normal açılmasını istiyorum bu karşılamayı yapamadım yada daha sağlıklı bu yönlendirmeyi nasıl yapabilirim

 public void OnActionExecuting(ActionExecutingContext context)
 {
     var referer = context.HttpContext.Request.Headers["Referer"].ToString();
     _logger.LogInformation($"Referer: {referer}");

     if (!string.IsNullOrEmpty(referer))
     {
         if (referer.Contains("r10.net"))
         {
             _logger.LogInformation("Redirecting to /Home/Index");
              context.Result = new RedirectToActionResult("Refferrer", "Home", null);
         }
         else if (referer.Contains("erdemcelebi.com"))
         {
             _logger.LogInformation("Redirecting to /Home/Refferrer");
             context.Result = new RedirectToActionResult("Index", "Home", null);
            }
     }
 }