Issue connecting Rankmath Account

#910320
  • Resolved Joel Williams
    Rank Math free

    I have been previously working on a dev environment with Rankmath connected however I have now published to the live site and have been instructed by client to continue work on there due to their hosting performing updates that wipes data on dev environment. When i follow the steps to reconnect the Rankmath account from the live site, the URL it preloads is the dev site url and then linking me back to the dev site and there seems to be no way of changing it.I don’t want to lose all the work i have already done on the pages that have now been published. Please help me with instructions on how to avoid this issue and connect the account to the website that i am connecting from. Thank you.

    [moved to sensitive data section]

    When i click the link to reconnect from the dashboard of the LIVE SITE URL it automatically loads the DEV SITE URL and there is no option to change it.

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

    We apologize for the issue you are facing while trying to connect your Rank Math account to the live site. It seems that the connection is still linked to your development environment, which can happen if the URLs are not updated correctly.

    To resolve this issue, please follow these steps:

    1. Check Site URLs: Ensure that both the WordPress URL and Site URL for your live site are set correctly. You can do this by navigating to WordPress Dashboard → Settings → General and confirming that both URLs match the live site URL.

      Check the site URL

    2. Disconnect and Reconnect: After confirming the URLs, try disconnecting your Rank Math account from the live site. You can do this by going to the Rank Math settings and looking for the option to disconnect your account. Once disconnected, reconnect your Rank Math account by clicking on Connect Now from the live site dashboard.

      Disconnect Rank Math account
      Click Connect Now on Rank Math

    3. Clear Cache: If you still encounter issues, clear your browser cache, website cache, and any site-level cache before attempting to reconnect again.

    4. Add a Filter (if necessary): If the problem persists, you can add a filter to bypass the URL check. Add the following code to your theme’s functions.php file:

      /**
      * Filter whether we need to check for URL mismatch or not.
      */
      add_filter( 'rank_math/registration/do_url_check', '__return_false' );

      This should allow you to connect without being redirected to the dev site.

    5. Re-Verify Your Site on Google: After successfully connecting, ensure that you re-verify your site on Google Search Console using the live site URL if you had previously verified the dev site.

    If you follow these steps and still face issues, please reply to this ticket, and a human agent from our support team will assist you further. Thank you for bringing this concern to our attention!

    Sources:
    How to Fix Problems While Connecting Account Using Rank Math » Rank Math

    I have tried all these steps. The account is stuck as disconnected. I can’t reconnect due to the original issue as explained above. I don’t know how to do the filter php step and don’t want to be messing around with the php file of the theme on the live site without knowing exactly what i am doing. Would really appreciate some help. Thank you.

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

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

You must be logged in to reply to this ticket.