ASP.NET Core url rewrite only domain
问题 I am trying to change my old domain to new one and I have huge data on my website. I need to change only my domain by url rewriting. When I request: www.myolddomain.net/article/seo-friendly-url-for-this-article I need to have a permanent (301) redirect to: www.mynewdomain.com/article/seo-friendly-url-for-this-article How ca I do this in asp.net core? 回答1: Have you considered URL Rewriting Middleware? It's pretty simple. Drop a IISUrlRewrite.xml file in the root of your application folder.