wordpress website issue

syed 40 Reputation points
2024-03-10T19:24:30.5966667+00:00

Dear Azure Support,

My name is Aqeel, and I'm reaching out to seek assistance with an issue I'm experiencing regarding the configuration of my Azure Web App and WordPress plugins.

I have recently set up a WordPress website hosted on Azure using a custom domain ("abc.com"). During the setup process, I installed three plugins: a caching plugin, a plugin named "Smash," and another plugin related to Azure, which I believe is for managing a content delivery network (CDN).

However, I've encountered an issue where changes made on one domain (the custom domain) seem to affect the other domain (the default domain provided by Azure), and vice versa. Additionally, I noticed that when I installed these plugins, they seem to be configured in a way that actions performed on one domain are mirrored on the other.

Here are the specific steps I've taken so far to troubleshoot the issue:

  1. Cleared cache in the caching plugin settings.
  2. Verified the WordPress general settings to ensure each domain has its own URL.

Despite these efforts, I'm still experiencing the issue where changes made on one domain are reflected on the other, and vice versa. This inconsistency is causing confusion and affecting the functionality of my website.

Could you please provide guidance on how to resolve this issue? Additionally, if there are any specific configurations or settings within Azure or WordPress that need to be adjusted to ensure that changes only affect the custom domain, I would greatly appreciate your assistance in identifying and implementing them.

Thank you for your attention to this matter.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

Accepted answer
  1. Silvia Wibowo 6,041 Reputation points Microsoft Employee Volunteer Moderator
    2024-03-10T23:07:03.91+00:00

    Hi @syed , I understand that you have created a WordPress on App Service and added a custom domain.

    A custom domain is additional name that you can use to reach your App Service. The default domain still exists. Both (default and custom) domains refer to the same App Service.

    Reading your question, I think you need to create 2 deployment slots for App Service, one for test, one for production.

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.


1 additional answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2024-03-11T11:40:55.87+00:00

    @syed , Based on my understanding of your scenario description, this appears to be redirection issue for couple reasons:

    1. URL settings on the database. There are two fields named SITEURL and HOME within the wp_options table that control the URL redirects.
    2. Defined constants in wp-config.php

    You may login to WordPress Admin >  Click on Settings -> General

    Find the WordPress Address (URL) and Site Address (URL) fields, and update it to the required URL.

    User's image

    Also, you may consider to manually update the URLs in the plugin to your custom domain URLs. This could possibly prevent the default .azurewebsites.net domain from being added to the page markup as the canonical URL, if you are looking to disable the default WebApp URL assigned to the azure web app. You may add how-to-create-a-301-redirect-for-wordpress-site-on.

    Refer this article for more info: WordPress: Redirecting to wrong URL!!

    Kindly let us know, I'll follow-up with you further.

    ---

    If the answer helped (pointed, you in the right direction) > please click Accept Answer to benefit the community find answers quickly to similar question.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.