How to convert a segment of the url path to uppercase using Azure frontdoor?

Sandeep G-MSFT 20,781 Reputation points Microsoft Employee
2025-04-02T11:16:09.2433333+00:00

How to convert a segment of the url path to uppercase using Azure frontdoor?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
813 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sruthi Saranya Karthikeyan 311 Reputation points Microsoft Employee
    2025-04-02T11:29:01.1766667+00:00

    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:

    1. Create a Rule Set: In your Azure Front Door configuration, set up a rule set to define the conditions and actions for URL rewriting.
    2. 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.
    3. 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.

    User's image

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.