In an ASP.NET Core project, I have the following route:
public class AboutController : Controller {
[HttpGet("about-us")]
public IActionResult Index() => View();
}
How to make this URL the default homepage of a site?
So when I go to www.mydomain.com, I automatically redirect to www.mydomain.com/about-us
Is this possible in ASP.NET Core or do I need to do this in a DNS domain?
source
share