How to redirect 404's from the proxied "back" site back to the "front" site? #1949
-
I'm using Yarp to implement a migration from ASP.NET 4 to dotnet 7.0 with the systemnet adapters. It all seems to be working well but when a page is requested and both the new site and old site don't have a matching page I'd like the request redirected to a /NotFound route on the new site. Puzzled over the configuration docs for a bit and am not entirely sure how one might accomplish that. Thanks! James |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you have a catchall route with a high order property (higher number is lower priority) then that should get called only if something more specific doesn't match first. |
Beta Was this translation helpful? Give feedback.
If you have a catchall route with a high order property (higher number is lower priority) then that should get called only if something more specific doesn't match first.