domain redirection in Azure front door (classic)

Omkar Patil 0 Reputation points
2024-11-07T08:44:34.19+00:00

Hello, I am trying to set up a rule in the rule engine that replaces the base URL.

Although the rule below has been created, it is not functioning.User's image

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

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 1,745 Reputation points Microsoft Vendor
    2024-11-07T15:13:36.5933333+00:00

    Hi Omkar Patil

    Greetings,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    • If your source domain is not added please verify it once again it might not work properly.
    • If the conditions do not match the incoming requests, the rule will not be triggered. For example, if you want to match a specific path or hostname, make sure that the conditions reflect that accurately.
    • Verify that the action you set in the rule is configured to replace the base URL. The action should specify how you want to rewrite the URL. For example, if you want to change https://old-domain.com to https://new-domain.com, ensure that the action is set up correctly.
    • The order of rules in Azure Front Door matters. If there are multiple rules, the first matching rule will take precedence.
    • Rules engine configuration: A set of rules that are applied to single route. Each configuration is limited to 25 rules. You can create up to 10 configurations.
    • Rules engine rule: A rule composed of up to 10 match conditions and 5 actions.
    • Match condition: There are many match conditions that can be utilized to parse your incoming requests. A rule can contain up to 10 match conditions. Match conditions are evaluated with an AND operator. For a full list of match conditions, see Rules match conditions.
    • Action: Actions dictate what happens to your incoming requests - request/response header actions, forwarding, redirects, and rewrites are all available today. A rule can contain up to five actions; however, a rule might only contain one route configuration override. For a full list of actions, see Rules actions.

    Configure Rules engine in Azure portal

    Refer: https://learn.microsoft.com/en-us/azure/frontdoor/front-door-tutorial-rules-engine#configure-rules-engine-in-azure-portal


    Hopes this clarifies, if not please let me know with exact what you are facing in a screenshot manner to drive further.

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    Looking forward to your response and appreciate your time on this.

    Regards,

    Ganesh


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.