Homepage Redirect Issue with Custom Permalinks and Static Page on Azure Front Door
Duman, Miro (RC-CH IT)
0
Reputation points
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:
- Confirmed that routing and host headers in Azure Front Door are correct.
- Verified SSL configurations.
- Deactivated all plugins to eliminate them as a source of the problem.
- Examined Nginx configuration to verify if any redirects are present, but did not find any
- Found this post (https://learn.microsoft.com/en-us/answers/questions/238565/infinite-redirect-loop-on-homepage-after-migrating), but did not resolve my issue.
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!
Sign in to answer