@Saram , Apologies for the delay from over the weekend. I understand that have tried multiple steps to isolate this issue.
Firstly, just to highlight App Service support HTTPS on *.azurewebsites.net
domain name and the certificate is provided and owned by Azure.
By default, http://yourdomain.azurewebsites.net works even with custom domain added, and the site admins aware about the URL can access, but typically end users would not access this URL directly (unless explicitly shared).
Typically, the redirection can occur for two reasons:
- URL settings on the database. There are two fields named SITEURL and HOME within the wp_options table that control the URL redirects.
- Defined constants in wp-config.php
On App Service: The wp-config.php files can be updated using either Kudu console or FTP Client (such as FileZilla). Try the steps (double-check) as outlined (A-D) in this article.
- Browse to Kudu : http://”yoursitename”.scm.azurewebsites.net.
Example: if your Azure App Service Web App name is “testwebapp”, then surf to http://testwebapp.scm.azurewebsite.net
- Click ‘Debug Console’ and select ‘CMD’
Traverse to wwwroot
folder
- For WordPress, update
wp-config.php
-make necessary changes, and save.
Additionally, you may try adding a robot.txt file for google indexing the site as mentioned by Peter on SO discussion thread.
If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will help users to find the answers quickly.