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

Duman, Miro (RC-CH IT) 0 Reputation points
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.
756 questions
{count} votes

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.