我需要将我的应用程序 (Sitecore) 的 /default 页面重定向到我托管网站的另一个页面

I need to redirect the /default page of my application(Sitecore) to another page of my hosted site

1.I 已尝试添加适用于本地环境但不适用于更高环境的 IIS 重写规则。 2.Sitecore 重定向设置也不起作用。 3.Currently (localhost)/default 加载主页,我需要这个来重定向到我网站的另一个页面。

有人可以帮助我在不覆盖 HttpBeginRequest 处理器的情况下实现这一点吗?

public IActionResult Privacy(){return Redirect("https://google.com"); }

因为你有一个MVC项目,请求都会路由到一个controller action,你可以在相应的action中设置重定向。