Rank Math Creating Post Ids

#1111465
  • drpen
    Rank Math free

    My Woocommerce Post IDS have been jumping by 100 each time a new order is created, WooCommerce support informed of the following:

    I took a closer look at the URLs in question (for example /wc/v3/system_status or /wc/store/v1/products). These are actually part of WooCommerce’s REST API. Normally, they should only be accessed through the WordPress REST base path, such as:
    /wp-json/wc/v3/system_status
    /wp-json/wc/store/v1/products

    You can find it loads here: https://drpenofficial.shop/wp-json/wc/store/v1/products

    It’s not a standard page and should not be handled as a regular post, which has a post ID assigned to it. It is accessed programmatically via API, not manually by a person.

    When used correctly, they return structured data (JSON), not a WordPress page or post.

    On your site, however, we’re seeing that these API endpoints are being assigned a WordPress post ID, as if they were regular pages. That’s not expected behavior. Based on our review, this is very likely caused by your SEO plugin (Rank Math), which may be trying to “index” or create post entries for these API routes.

    Next step

    To ensure this is handled correctly, we recommend reaching out to Rank Math’s support team and asking whether they officially support excluding WooCommerce API routes from being treated as posts. They’ll be able to confirm if there’s a setting or filter that can be applied to prevent this behavior.

    Sharing this context with them will help:

    REST API endpoints should not be assigned post IDs.
    API calls should always include /wp-json/ in the URL.
    Treating these as posts could cause unexpected redirects, canonical tags, or indexing issues.

    In summary, this issue isn’t caused by WooCommerce itself, but by how the SEO plugin interprets API URLs. For guidance on excluding these endpoints from SEO indexing, contact Rank Math’s support team at https://rankmath.com/support/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the WooCommerce post IDs being assigned incorrectly. It seems that the Rank Math plugin is treating the WooCommerce REST API endpoints as regular posts, which is not the expected behavior.

    To address this, we recommend checking if there are settings within Rank Math that allow you to exclude these API routes from being indexed or treated as posts. Unfortunately, we do not have specific details on this matter in our current context.

    For a more comprehensive solution, please reply to your ticket with this information, and a human agent from the Rank Math Support team will assist you further. They will be able to provide guidance on how to prevent these API endpoints from being assigned post IDs and ensure that your SEO settings are correctly configured.

    Thank you for bringing this concern to our attention!

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    We checked the URL in question but it doesn’t seem to return as an actual page or HTML. It is currently loading objects of the product.

    Can you please share a video screencast or a screenshot of the issue from your end?

    You may share your screenshots/video screencasts using the tool below:

    https://loom.com/
    https://imgur.com/upload

    Also, to initially debug the issue, please try disabling Rank Math and see if this fixes the issue. If it doesn’t, then the issue could point to something else.

    Looking forward to helping you with this one.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this ticket.