Hello,
We apologize for the issue you are facing with the URL mismatch in your WordPress setup. It sounds like you have a unique configuration with WordPress running headless, and we understand how that can complicate things, especially with the AJAX requests made by plugins like Rank Math.
The requirement for the WordPress Address (URL) and Site Address (URL) to match is a common setup for standard installations, but we recognize that headless configurations can differ significantly. Unfortunately, our current implementation may not fully support such setups, which can lead to the issues you’re experiencing when saving posts.
To address this, we recommend replying to your ticket with more details about your setup, including the specific URLs involved. A human agent from the Rank Math Support team will be able to take a closer look at your situation and provide tailored assistance.
Thank you for bringing this concern to our attention, and we appreciate your understanding as we work to improve our support for various configurations.
Looking forward to your reply!
“The requirement for the WordPress Address (URL) and Site Address (URL) to match is a common setup for standard installations” no it isn’t, I have never experienced this problem with any other plugin, this is just badly implemented really. It just needs to use the proper URL when doing a request to the WordPress Address instead of the Site Address, it’s actually quite simple. These settings exists for a reason, limiting the user is just really bad practice and it makes me feel like it might be better using another SEO plugin with a more reliable implementation.
Hello,
Unfortunately, this is not possible to achieve with our plugin because we use the WordPress REST API to update the metadata.
If you change the site address in the settings, it will no longer ping the WordPress website when trying to update the metadata.
Without the site address pointing to the WordPress installation, the REST API is not available, so this is a requirement.
The only option we have for Headless integration is the generation of the metadata as mentioned in our tutorial here: https://rankmath.com/kb/headless-cms-support/
Please note that we don’t support the GraphQL integration, and that is supported by some developers not associated with our company.
Looking forward to helping you.
I’m using https://github.com/AxeWP/wp-graphql-rank-math/ which works just fine, I don’t need the plugin to ping the wordpress website when trying to update the metadata, I just need it to save. This is forcing me to have my admin url for both links and the plugin is pinging a fake empty page that has no relation to my website whatsoever and now I have to override all my urls through my functions.php just to accomodate your plugin which disrespects the user’s settings. At least provide an option to disable this pinging or don’t fail the save if the ping fails. Or make it possible for the user to provide his own endpoint with documentation of what data is expected so this can be added to the headless site. At the moment your headless support is nonsensical.
Hello,
Our current implementation relies on the REST API tied to the Site Address, we acknowledge that this may not suit all use cases.
If your suggestion is something we can implement in the future, we will be sure to let you know but as of now, we have no immediate plans on adding it to our plugin.
In the meantime, the best workaround remains generating metadata manually as outlined in the KB guide we previously shared.
We appreciate your patience and understanding. Please let us know if there’s anything else we can assist you with.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.