0
votes

I have domain example.com pointing to Azure Application Gateway

In Application Gateway I use url based routing which routes traffic to Azure App Service (blog.azurewebsites.net), and ssl termination.

App Service this is wordpress site with WP_SITEURL and WP_HOME set to "example.com".

Now, if I go to:

https://example.com/post/ - works well

https://example.com/index.php - works well

https://example.com - redirect loop takes place

2
Did you resolve this issue?Duc Huynh
any update on this ?CZ54

2 Answers

0
votes

Can you try https://example.com/? (with the slash in the end).

Without slash, I guess it is not matching the path based rules.

0
votes

I run the WP Site on Azure App Service with Linux Environment.

Once I access my domain with HTTPS and the $_SERVER['REQUEST_SCHEME'] return 'http' instead of 'https'. It caused the problem is the WP Site loads all images, css, js.. with http

I fixed my case with these lines in wp-config.php file.

$_SERVER['HTTPS'] = 'on';
$_SERVER['REQUEST_SCHEME'] = 'https';