I've written a blog post on another site:
When you develop a web application, you often need to add some redirection rules. The most common redirection rules are: redirect from "http" to "https", add "www", or move a website to another domain. URL rewriting is often use to provide user friendly URL.
Before we start, I want to explain the difference between redirection and rewrite. Redirecting sends a HTTP 301 or 302 to the client,
The full post is available at the following URL: https://www.softfluent.com/blog/dev/Page-redirection-and-URL-Rewriting-with-ASP-NET-Core