We currently have a bunch of ASP.NET applications which are all accessible through one domain.
So www.example.com
connects to the main website.
www.example.com/documents
is a separate application allows customers to access their documents.
This is hosted in IIS with the documents branch being an ASP.NET application.
Customers have emails that link to their documents like:
www.example.com/documents/document?id=12345
We're looking at updating the main website and separating it from everything else - moving it to a separate host - most likely an Apache/WordPress setup.
With this in mind the original domain name would go with the main website, and then a secondary domain would be setup which would continue to hold the documents application on Windows/IIS.
www.backenddomain.example/documents
In this scenario is it possible for Apache/WordPress to redirect just the documents sub folder/page to the new domain without the URL changing in the browser?
So www.example.com/documents
goes to www.backenddomain.example/documents
but the customers sees www.example.com/documents
I know I can setup a 301 redirect but that changes the URL the customer is presented and ideally I'd prefer it if we can keep it the same. Effectively forwarding the content.