Backstory, I've got a "php/symfony web app" that is currently hosted on www.example.com
but I'm wanting to have that whole functionality be moved to app.example.com
so I can spin up a wordpress site that handles all of the www
traffic (its our marketing pages).
The challenge/issue is that we have links in the wild referencing www
(ex www.example.com/thing/handled/by/app
). So I need to find a wordpress plugin that will issue 301's for anything it doesn't know how to handle (aka wp needs to have 404 redirect to app
).
So if we create a /pricing
page in the wordpress site, then its available at www.example.com/pricing
and handled by wordpress. But if someone goes to www.example.com/foo
which is not a page wordpress is able to handle, then we have a 301 to app.example.com/foo
. I'm finding some plugins that handle "known" routes but I basically need to have a wildcard redirect but for 404's only.
Let me know if additional details are necessary.