It is not possible to convert specific segments of the url path as this is not a supported functionality yet. Instead you can convert the complete URL path to uppercase using Azure Front Door, you can utilize the URL rewrite feature in conjunction with server variables. Here's how you can achieve this:
- Create a Rule Set: In your Azure Front Door configuration, set up a rule set to define the conditions and actions for URL rewriting.
- Define Match Conditions: Specify the conditions under which the rule should apply. For instance, you can set the rule to trigger for requests matching certain patterns or paths.
- Configure URL Rewrite Action:
Source Pattern: Set the source pattern to match the incoming URL path. For example, to match all paths, you can use /.
Destination Path: Construct the destination path using server variables and transformations.
Example scenario:
To convert url as follows,
from: https://abc.com/courses-overview/abc/docs
to:https://abc.com/COURSES-OVERVIEW/ABC/DOCS
and to apply the changes to only urls that contain '/courses-overview/' you can set the values as shown below.
Note: Ensure that any rules prior to this rule do not have the 'Stop evaluating additional rules' option checked if they have overlapping conditions to ensure this rule takes effect.
Please "[Accept the answer]"](https://docs.microsoft.com/answers/support/accepted-answers)%22"https://docs.microsoft.com/answers/support/accepted-answers)%22") if the information helped you. This will help us and others in the community as well.