title: Accessing Wordpress behind an Azure application Gateway
body: <p>I have a Wordpress site hosted in an Azure Web App. It works fine when accessed directly by the web app. But when I put it behind the Azure Application Gateway, I receive "Too_Many_Redirects" error.</p>
  
  <p>I have another website behind the Application Gateway, that is not a Wordpress, and this does not occur.</p>
  
  <p>Has anyone ever experienced this?
  It's there any specific setting or workaround to make this work?</p>
  
  <p>Edit 1----</p>
  
  <p>Application Gateway Configs:</p>
  
  <ul>
  <li><p>Health Probe
  <a href="https://i.stack.imgur.com/2EoXj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2EoXj.png" alt="Health Probe settings"></a></p>
  
  <ul>
  <li><p>HTTP Settings
  <a href="https://i.stack.imgur.com/6KWAm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6KWAm.png" alt="HTTP settings"></a></p></li>
  <li><p>Listener
  <a href="https://i.stack.imgur.com/zOp1R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zOp1R.png" alt="Listener settings"></a></p></li>
  <li><p>Backend Pool
  <a href="https://i.stack.imgur.com/gq42q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gq42q.png" alt="Backend Pool settings"></a></p></li>
  <li><p>Rule
  <a href="https://i.stack.imgur.com/BnXI2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BnXI2.png" alt="Rule settings"></a></p></li>
  </ul></li>
  </ul>
  
  <p>The Web App endpoint is in HTTPS.</p>
  
  <p>Edit 2----</p>
  
  <ul>
  <li>Backend Health
  <a href="https://i.stack.imgur.com/QppdC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QppdC.png" alt="Backend Health"></a></li>
  </ul>
  
  <p>Today I made a lot of tests and find a way to make this work, but doesn't solve the problem, instead, creates another one. In Wordpress at 'SiteURL' and 'Home' settings instead of use the desired address, the custom one, I used the default address provided by Azure Web App . Doing like that, the TOO_MANY_REDIRECTS error was gone, but the links of my website changed to *.azurewebsites.net, which is a big problem.</p>
  
  <p>I tried the 'Home' address with HTTPS and HTTP. No success.</p>
  
  <p>I just discovered that even with no SSL, the problem occurs. Only works with the 'azurewebsites' address, that break my links.</p>