rankmath do not save

#578968
  • Resolved Massimo Arteconi
    Rank Math free

    I’ve already followed best practice to whitelist in cloudflare and also fully disable it and still not working

    if i try this url:
    https://www.beautydea.it/wp-json/rankmath/v1/ca/getCredits/?_locale=user

    i’ve got this answer :
    {"code":"rest_no_route","message":"Nessun percorso fornisce una corrispondenza tra l'URL ed il metodo richiesto.","data":{"status":404}}

    So i suppose it should working.

    Trying to edit a post, we got an anonymous warning that says, you probably are off-line.

    If i edit a post with some key or anything in rankmath nothing is saved.
    In console i can see this error

    post.php:1 Mixed Content: The page at 'https://www.beautydea.it/wp-admin/post.php?post=14180&action=edit&classic-editor' was loaded over HTTPS, but requested an insecure resource 'http://www.beautydea.it/wp-json/rankmath/v1/ca/getCredits/?_locale=user'. This request has been blocked; the content must be served over HTTPS.

    post.php:1 Mixed Content: The page at 'https://www.beautydea.it/wp-admin/post.php?post=14180&action=edit&classic-editor' was loaded over HTTPS, but requested an insecure resource 'http://www.beautydea.it/wp-json/rankmath/v1/updateMeta/?_locale=user'. This request has been blocked; the content must be served over HTTPS.

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    I’ve tried logging in to your site, but it seems that the link is already expired. Could you please check?

    Meanwhile, 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/

    If the issue still persists, you may get in touch with your web host for checking the mixed content issue.

    You can also follow this guide to fix the mixed content warnings:
    https://kinsta.com/blog/mixed-content-warnings/

    Looking forward to helping you.

    Thank you.

    Massimo Arteconi
    Rank Math free

    Let me share with you that a redirect that should add the trailing slash was creating the problem.
    I don’t know why this kind of “hidden” impact but here the line that were creating the problem:

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

    Md. Sakib Khandaker
    Rank Math agency

    Hello,

    Yes, adding the condition line RewriteCond %{REQUEST_URI} !^/wp-json (exclude wp-json URLs) to your trailing slash redirect rule should work, The edited redirect will look similar to the one below:

    #Add Trailing slash for end of the URL
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !^/wp-json
    RewriteRule ^(.*[^/])$ /$1/ [R=301,L]

    However, It seems you already marked this ticket as Resolved.

    Can you please confirm if you still need our assistance with this one?

    Looking forward to hearing back from you.

    Thank you.

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

You must be logged in to reply to this ticket.