Hi Gurdev,
Welcome to Microsoft Q&A Platform!
To implement URL redirection from https://oldsystem.olddomain.com/<rest of the path>
to https://newsystem.newdomain.com/<rest of the path>
using Azure Functions, you can utilize an Azure API Management (APIM) instance to direct requests to your function app. Here’s a straightforward approach:
- Create an API Management Instance: If you haven't done so already, set up an APIM instance in Azure.
- Import Your Function App: Import your Azure Function into the APIM instance as an API.
- Configure a Rewrite Rule: Establish a rewrite rule in APIM to redirect requests from
https://oldsystem.olddomain.com/<rest of the path>
tohttps://newsystem.newdomain.com/<rest of the path>
. This can be achieved by creating a policy that alters the request URL. - Test the Configuration: Verify that requests to the old domain are successfully redirected to the new domain.
This configuration enables you to manage the redirection without depending on the deprecated proxy's feature.
For your reference, please review the following documentations for further clarification:
I hope this answers your query! Let me know if you require any additional help or clarification.