Http redirect
An HTTP redirect is a response that instructs a user agent to request a resource at a different URI, typically using a 3xx status code and a Location header.
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 →
Also covered in
- Test Driven: Practical TDD and Acceptance TDD for Java Developers
- Django in Action
- Tech Startup Toolkit
- Learn Go with Pocket-Sized Projects
- Coding with AI
- Grokking Web Application Security
- Acing the CCNA Exam: Volume 2 Advanced Networking and Security
- The Design of Web APIs, Second Edition
What to know first
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
- HTTP requestAn HTTP request is a message sent by a client to a server using the Hypertext Transfer Protocol, specifying a method and target and optionally including headers and a body.
- HTTP status codeAn HTTP status code is a standardized three-digit value in an HTTP response that indicates the outcome of processing the corresponding request.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
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.
- 302 foundproduces · HTTP 302 Found is a response status indicating that a requested resource is temporarily available at another URI.
- browserused by · A web browser is software that retrieves, interprets, and renders web resources, executes supported web content, and enables interaction with web applications.
- HttpsRedirectionMiddlewareimplemented by · HttpsRedirectionMiddleware is ASP.NET Core middleware that redirects eligible HTTP requests to their corresponding HTTPS URLs.
- ExceptionHandlerMiddlewareproduced by · ExceptionHandlerMiddleware is ASP.NET Core HTTP middleware that intercepts unhandled exceptions and generates or redirects to an error response.
Questions about http redirect
What is http redirect?
An HTTP redirect is a response that instructs a user agent to request a resource at a different URI, typically using a 3xx status code and a Location header.
Which Manning books explain http redirect?
Pro ASP.NET Core 7, Tenth Edition and ASP.NET Core in Action, 3e.
What should I know before learning http redirect?
Manning books that teach http redirect usually introduce HTML, HTTP request, HTTP status code and JavaScript first.
What is http redirect part of?
Http redirect is part of post-redirect-get. 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.
What is http redirect also called?
Http redirect is also called redirection.
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.

