Homepage Redirect Issue with Custom Permalinks and Static Page on Azure Front Door

Anonymous
2025-02-21T07:28:41.24+00:00

Hello,

I've encountered a redirect issue with my WordPress site configured behind Azure Front Door, and I hope to receive some guidance.

Setup Overview:

  • Domain: I'm hosting the WordPress site on a custom domain using Azure Front Door. The application runs in a Linux container environment.
  • WordPress Configuration: The WordPress site is set up to use Azure Web App as the backend service.

Issue Details:

  • When I change the permalink structure from default to a custom format (e.g., /blog/%postname%/) and designate the homepage as a static page, any attempt to access the homepage results in a redirect loop.
  • Interestingly, accessing other pages like /cart works without issue under the same settings.
  • If I set permalinks to default, the entire site, including the homepage, works normally.
  • Alternatively, if I select the latest posts instead of a static page for the homepage and keep the custom permalink structure, the site also functions correctly.

Steps Taken:

Could someone help identify why the combination of a static homepage with custom permalinks results in a redirect loop, and suggest how to address this issue while maintaining my current configuration preferences?

Thank you for your assistance!

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

Accepted answer
  1. Venkat V 775 Reputation points Microsoft External Staff
    2025-03-03T16:37:31.4+00:00

    Hi @DumanMiroRCCHIT-3574

    Thanks for your reply.

    As you have already bypassed the URL in Front Door with the correct configuration but are still experiencing redirection, the issue may be related to the WordPress app configuration. Kindly check with the WordPress team for further investigation.

    I'm glad that you were able to identify your issue.

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue: Since you have already bypassed the URL in Front Door but are still experiencing redirection, it may be due to WordPress configurations.

    Reference: URL rewrite

    Please click "Accept my answer" if the provided information is helpful. This will assist other community members facing similar issues in finding the correct solution.

    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.