-
Hi,
Every time I save the new page title and meta description it goes right back to the old one. I don’t see any javascript errors, wordfence is not blocking it and I tested it in troubleshooting mode with the theme and all plugins disabled and still no luck. Can you help me resolve this issue? The website is [removed]
Sincerely,
Steve
-
Hello,
I’m sorry to hear that you’re facing issues with saving the new page title and meta description on your website. If you have already checked for JavaScript errors and ensured that Wordfence is not blocking it, it’s good that you have eliminated some common causes.
Since you have already tried troubleshooting by disabling the theme and plugins, and the issue persists, I recommend reaching out to the Rank Math support team for further assistance. You can open a support ticket at Rank Math Support. Our support experts will investigate the issue specific to your website configuration and provide you with a solution tailored to your needs.
Thank you for raising this concern, and we appreciate your patience as we work to resolve this issue for you.
Best regards,
Sources:
Why Your SEO Title, Description & Focus Keyword Aren’t Being Saved » Rank Math
Homepage SEO Settings via Meta Title and Description
How to Prevent Modified Date of Your Blog Posts from Being Updated » Rank MathHello,
Thank you for contacting Rank Math and sorry for any inconvenience this issue may have caused you.
We’ve checked your site and found that Rank Math REST Routes that we use to update the data are being blocked by your Wordfence firewall and most likely this is why you’re facing the issue. Please check the screenshot below for your reference:
/wp-json/rankmath/v1/updateMeta /wp-json/rankmath/v1/updateSchemas /wp-json/rankmath/v1/updateRedirection /wp-json/rankmath/v1/getFeaturedImageId /wp-json/rankmath/v1/getHead
In order to fix this issue, please whitelist the above-mentioned Rank Math REST Routes by following the guide below: https://rankmath.com/kb/whitelist-rank-math-in-wordfence/
Learn more about troubleshooting this issue here: https://rankmath.com/kb/meta-data-not-saving/
We hope these steps help you solve the problem and please do not hesitate to let us know if you need our assistance with anything else.
Thank you for choosing Rank Math.
Hey, so I followed the steps and add the url to the Allowlisted URLs, but I am still having the same problem and the meta data is not saving. Can you check on your end and confirm that Wordfence is not blocking it anymore? Also, if you have any other suggestions please let me know. Thanks!
Hello,
We checked your website and we can confirm that Wordfence is not blocking the Rank Math REST Routes anymore.
However, it looks 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]
If you’re not sure, then you can get in touch with your hosting provider to do that for you.
Let us know how it goes. Looking forward to helping you.
Thank you.
Thanks for looking into this. Where should this code be pasted? Is this in WordPress or with my hosting?
Hello,
You can place the code in the .htaccess file.
You can edit your .htaccess file from WordPress Dashboard > Rank Math > General Settings > Edit .htaccess: https://rankmath.com/kb/edit-htaccess/
Ensure that you’ve switched to the Advanced Mode in Rank Math so that you can view this section.
Please generate a backup of your website before making any changes as it is a sensitive file.
If you need assistance modifying the .htaccess file, We would recommend getting in touch with your web host so they can place the redirects correctly.
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.
Hi, I added the code to the htcaccess and still cant update the page title or meta description. Any other suggestions?
Hello,
Please clear all cache (Server, site and browser), if possible attempt using a different browser and search again.
If the issue persists we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
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.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hey, I’m still having the same issue with the page title and meta description not saving. I have added the login details under sensitive data and here is the url to login (deleted) Thanks!
Hello,
Thank you for your patience.
Your .htacess file contains multiple Rewrite rules, and the code you have added could cause conflict since the trailing slash is already happening.
To properly apply the
RewriteCond %{REQUEST_URI} !^/wp-json
rule, you should get in touch with your web host and ensure that the trailing slash is only applied once to avoid conflicting issues as the .htaccess is a sensitive file.Let us know how this goes.
Hi, can you delete the url that I posted in my last message? It is showing up as a backlink on our site and I don’t want that url posted to the public. Thanks!
Hello,
The login URL has been deleted as requested.
Do you still need our assistance with anything else or we can go ahead to close the ticket?
We really look forward to helping you.
You must be logged in to reply to this ticket.