Abel Moremi, Apologies for the delayed response.
Based on my understanding of your scenario, you may try the following approaches:
Ensure all your custom domains are properly set up and verified in your Azure App Service.
Configure URL Redirection in WordPress:
- Log in to your WordPress admin dashboard.
- Go to "Settings" > "General".
- Update the "Site Address (URL)" field to your primary domain.
(This ensures that WordPress uses the primary domain for all URLs.) - Save the changes.
Just to highlight, Wordpress on Linux refers to the offering that is found here - Create a WordPress site --This uses an Alpine-based image with NGINX and PHP-FPM (currently PHP 8.x). NGINX is the web server used.
On App Service either going to change nginx.conf
or default.conf
.
- Copy
/etc/nginx/conf.d/default.conf
to/home/dev
. Our copy of the file will exist as/home/dev/default.conf
- Edit the existing startup fie in
/home/dev/startup.sh
to include the following:
#!/bin/bash
echo "Copying custom default.conf over to /etc/nginx/conf.d/default.conf"
cp /home/dev/default.conf /etc/nginx/conf.d/default
nginx -s reload
3.Now, depending on what kind of redirect to be done, edit the default.conf with your intended change below.
Kindly let us know, I'll follow-up with you further.
Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.