Rankmath title and meta goes to default once page is updated

#516555
  • Resolved theecommtask
    Rank Math free

    I am trying to add Title, Description, etc to rankmath on a product page. But once I am done adding, and update the product page, the title and meta goes back to default.

    Thank You.

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

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    I checked your site and found that the following REST Routes we use to update the data is being blocked by your Wordfence firewall. I’ve attached the screenshots in the sensitive data section for your reference.

    /wp-json/rankmath/v1/updateMeta
    /wp-json/rankmath/v1/updateSchemas
    /wp-json/rankmath/v1/updateRedirection
    

    In this case, please try to whitelist these routes on the firewall so that the data can be updated correctly on your website: https://rankmath.com/kb/whitelist-rank-math-in-wordfence/

    Let us know how it goes.

    Thank you.

    ​​​​​​​

    Unblock list

    Still the same

    Hello,

    It seems like you have a redirection on your website that adds a trailing slash to all URLs and that is being triggered in the API routes as well. That should not be applied to REST API routes but only to the pages and posts of the website. Otherwise, the functionality of the plugin might not work as intended.

    To fix this, 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/ [L,R]
    

    Here’s how you can edit .htaccess file using Rank Math:
    https://rankmath.com/kb/edit-htaccess/

    Please do take a backup before editing your .htaccess file.

    You can also ask your hosting provider to do that for you.

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

    Thank you.

    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.

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

The ticket ‘Rankmath title and meta goes to default once page is updated’ is closed to new replies.