@Athanasios Kalavritinos Thanks for reaching here! If using using IIS.
To address this issue, consider the following steps:
- Verify DNS Settings: Ensure that your custom domain is correctly configured to point to your Azure App Services site. To do this, refer to the detailed instructions in the "Create the DNS records" section. Additionally, if you are unsure about the correct configuration, you can follow the steps outlined in "Map an existing custom DNS name to Azure App Service."
- WordPress Site Setup: During the setup of your WordPress site, you initially choose the site domain, which becomes the primary address used throughout the site. Adjusting "Site Address (URL)" in WordPress: To modify the address users type in their browsers to access your WordPress blog, follow these steps:
a. Go to "Settings" in the WordPress admin area.
b. Select "General" from the menu.
c. Look for the "Site Address (URL)" field on the screen.
d. Update the URL to the desired address for your WordPress blog.
e. Save the changes.


For Linux-
You may have to follow the steps mentioned in this blog to update the Nginx configuration file to redirect your users from azurewebsites.net & to your custom domain.
- Go to Azure Portal, open a new SSH session. (https://<your-site-name>.scm.azurewebsites.net/webssh/host)
- Update Nginx Default.conf - Server Block (Edit- file is under /etc/nginx/conf.d/default.conf)
- Update Nginx Default.conf - Location Block
- Save Changes
- Use command
nginx -s reload to restart the Nginx Service & load the new configuration so that your redirects should be working as expected.
Hope this helps. Let us know.