Snippet’s Won’t Save

#469130
  • Resolved Jay Kavanagh
    Rank Math pro
    Content AI Starter

    Hi Guys,

    We have a strange issue where we cant save snippets through rank math. This issue happens when editing a page and when trying to use the edit icons when viewing the page list.

    This is the error we’re getting:

    Mixed Content: The page at ‘https://DOMAIN/wp-admin/edit.php?post_type=page&orderby=date&order=desc’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://DOMAIN/wp-json/rankmath/v1/updateMetaBulk/’. This request has been blocked; the content must be served over HTTPS.

    I’ve tried disabling all plugins. I’ve used a search & replace plugin to modify database tables from ‘http’ to ‘https’ and I’ve tried editing the htaccess file but nothing seems to work.

    Please can you let me know if you have any suggestions?

    Thanks

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

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    If you are using a Firewall, please whitelist this route:
    /wp-json/rankmath/v1/updateMeta

    Whitelisting the route should fix the issue.

    You can check this link for more information:
    https://rankmath.com/kb/meta-data-not-saving/#firewall

    If the issue persists, please take a backup of your .htaccess file and replace it with the default WordPress .htaccess file. You can get the file here: https://wordpress.org/support/article/htaccess/

    You can follow this guide to edit the .htaccess file:
    https://rankmath.com/kb/edit-htaccess/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Jay Kavanagh
    Rank Math pro
    Content AI Starter

    Hello,

    Sorry about the delay. I didn’t get a notification when post was updated. Unfortunately this didn’t solve the issue. Please see screenshot of Cloudflare rules.

    Cloudflare

    I reset the htaccess and copied the old code back in while removing:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*[^/])$ /$1/ [R=301,L]

    This seemed to fix the issue. I checked Rank Math redirects and they still seem to work so fingers crossed this has solved the problem.

    Can you confirm if you think this might cause any issues?

    Anas
    Rank Math business

    Hello,

    This won’t cause any issues, Rank Math does not add the redirects to the htaccess file.

    Let us know if you have any questions.

    We are here to assist you.

    Jay Kavanagh
    Rank Math pro
    Content AI Starter

    All sorted now, thanks

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.