We're needing something straightforward in concept, but not sure if nginx can handle.
The basic idea is to check if the path exists on the server...if so, pass the traffic through...if not, redirect with rewrite. For example.
Path: example.com/page/12345
<- this exists on server, so just pass through.
Path: example.com/this/7121
<- this doesn't exist on server, so pass to home.example.com/this/7121
Is this possible with nginx and without having a major impact on performance.