Http redirect
An HTTP redirect is a response that instructs a client to request or display a resource at a different location.
Pro ASP.NET Core 7, Tenth Edition
HTTP redirection is an HTTP response mechanism that instructs a client to request a different URL or endpoint.
- How it is used
- Uses redirects to move clients between controller endpoints, complete form submissions, and display a production error page.
- How deep it goes
- Works through controller redirect methods and client behavior, then applies redirects in form and exception-handling flows without detailing HTTP status codes.
- Examples
- Tests a product redirect with Invoke-RestMethod and uses a Razor Pages form whose submitted data appears on a results page.
- What you can do after
- Apply it via ASP.NET Core controller action results or Razor Pages form handlers, and select local-only redirects for user-provided URLs.
Read how Pro ASP.NET Core 7, Tenth Edition explains http redirect →
ASP.NET Core in Action, 3e
An HTTP redirect is a response that instructs a client to issue a request for a different URL.
- How it is used
- Moves users between pages after form submissions and generates separate requests for friendly error pages.
- How deep it goes
- Explains browser follow-up requests, 302 and 200 responses, and status-code loss while stopping short of redirect variants.
- Examples
- Uses checkout-to-payment navigation and status-code middleware redirecting a 404 response to /404.
- What you can do after
- Operate/configure Razor Pages navigation and error handling with redirect-based results and status-code middleware.
Read how ASP.NET Core in Action, 3e explains http redirect →
Related concepts
- post-redirect-getpart of · POST-Redirect-GET is a web interaction pattern in which a form submission is followed by a redirect to a result URL retrieved with GET.
- HttpsRedirectionMiddlewareimplemented by · HttpsRedirectionMiddleware is ASP.NET Core middleware that redirects eligible HTTP requests to their corresponding HTTPS URLs.
- browserused by · A web browser is software that retrieves, interprets, and renders web resources, executes supported web content, and enables interaction with web pages and applications.
- 302 foundproduces · HTTP 302 Found is a response status indicating that a requested resource is temporarily available at another URI.
- ExceptionHandlerMiddlewareproduced by · ExceptionHandlerMiddleware is ASP.NET Core HTTP middleware that intercepts unhandled exceptions and generates or redirects to an error response.
- TempDataused by · TempData is an ASP.NET Core temporary-data dictionary for storing values across requests, commonly through cookies.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

