-
Hello Rank Math Support Team,
I hope this message finds you well. I’m reaching out regarding an issue I’ve encountered on my website, https://vikashkumarpal.com/, which uses a headless WordPress setup. Here’s a detailed overview:
Setup Overview:
- The frontend of my website is developed using NextJs.
- The headless WordPress backend is hosted on a subdomain: https://admin.vikashkumarpal.com.
- I’m utilizing GraphQL for API integration.
Issue Description:
Everything functions as expected until I make a change in the WordPress dashboard settings for the site URL. Specifically, when I update the site URL to https://vikashkumarpal.com from its default setting. After making this change, I’m encountering a persistent issue:When attempting to update the metadata of any page or post, specifically the title, description, and OG data, the changes do not get saved upon clicking the update button. Instead, the system displays the old data.
However, when I retain the site URL to its default, which matches the WordPress URL (https://admin.vikashkumarpal.com), all updates to metadata function perfectly.
Primary Concern:
Our intention behind changing the site URL from the subdomain (https://admin.vikashkumarpal.com) to the main domain (https://vikashkumarpal.com) is to ensure that the sitemap reflects the main site URLs rather than the subdomain URLs. We’re aiming to index the main site URLs, as our subdomain is merely for backend purposes and shouldn’t be indexed.Given this requirement, I’m seeking guidance on how to achieve seamless metadata updating while also having the desired URLs in the sitemap.
I appreciate your time and assistance with this matter. Please let me know if you require any additional information or clarification to aid in troubleshooting.
Best regards,
Vikash
The ticket ‘Issue with Updating Metadata After Changing Site URL’ is closed to new replies.