Sitemap not updating

#46296
  • Resolved Made invideo
    Rank Math free

    Hi,

    My sitemap is not updating. Until yesterday I had my website translated into three languages using the plugin TranslatePress, but I decided to get rid of two languages (Italian and German). So, now my site has the original language (Spanish) plus one translated language (English). However, I can still see in sitemap how every single page stills appears with the different versions for Italian and German (URL name plus subfolder /de/ or /it/).

    I’ve done all the following things below that I believe usually solve the problem, but still not working.

    -Clearing the cache (doing this from both WP Rocket and Chrome).
    -Click Save many times in the WordPress permalinks settings.
    -Click save many times in the Rank Math XML sitemap settings.
    -I have added the following /(.*)sitemap(.*).xml and /(.*)sitemap.xsl to my Never Cache URL(s) inside WP Rocket

    Your help will be much appreciated. See my website and sitemap in the sensitive data box.

    Thanks in advance!

    • This topic was modified 4 years, 10 months ago by Made invideo.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Todd
    Rank Math free

    Hi,

    Thanks a lot for your query and we are so sorry about the trouble this must have caused.

    Could you please let us know what happened to the posts/pages you had translated? Did you just redirect them or did you delete them as well?

    Assuming you deleted them and you are running the latest version of Rank Math, there is one more step you might want to take. And that is place the following code in your theme’s functions.php file to disable Rank Math’s internal cache for sitemaps:
    https://rankmath.com/kb/filters-hooks-api-developer/#enable-disable-sitemap-cache

    It should help but do let us know if it doesn’t.

    Hi,

    Thank you so much for your quick reply! Regarding your questions, I’m not a 100% sure how TranslatePress plugin works. You see, this plugin doesn’t actually duplicate pages for each translated language inside your WordPress Back-end. But, at the same time, it does create somehow (using their own database maybe, no idea) different pages for each version. So, for example if your contact page is http://www.yourwebsite/contact for, English you will also have http://www.yourwebsite/en/contact. But, this page is not accesible from the pages area of WordPress, if you see what I mean. However, what I did notice, after getting rid of the German and Italian versions is that now if a go to my sitemap and I click on any of these language version pages, the link doesn’t take me to the actual page, but to my home, which is the default behaviour I set up with your plugin for pages that not exist anymore. So, I guess this means that the pages have been deleted.

    So, in this case, I’m not sure if I should still add the code you told me in the functions.php

    Looking forward to hearing your thoughts

    Todd
    Rank Math free

    Hi,

    If the pages are redirected – that means they will soon be removed from Google’s indexed.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi,

    Thank for your reply. I appreciate it, but that’s a different thing. What I mean is that the pages still appear in my sitemap because is not auto-updating, so I have to do something for my sitemap to updated and stop showing those erased pages. If you see what I mean.

    THank you and looking forward to hear your thoughts

    Alberto
    Rank Math business

    Hello,

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

    You can refresh the sitemap by doing the following:

    1. Head over to WordPress Dashboard > Settings > Permalinks

    Hit the save button once.

    2. Go to WordPress Dashboard > Rank Math > Sitemap Settings

    Hit the save button once.

    If it doesn’t, please do let us know so we can look at this further.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi Alberto,

    Thanks for your reply and apologies for my late reply.

    I appreciate the suggestions, but if you read my original message you can see that that’s exactly what I did from the very beginning (click save on WordPress permalinks + click save on Rank Math > Sitemap) and it didn’t work, so that’s why I opened this ticket, to see what else can be done about it.

    To summarize my problem again, I use TranslatePress as my plugin for translating my page to English. However, for a little while, I decided to add German and Italian but then I changed my mind and got rid of both of them. However, the pages once generated for German and Italian still appear in my sitemap. So I would like my sitemap to get updated and for those German & Italian pages to not appear anymore.

    My sitemap should only contain the pages in the original language (Spanish) + one translated version (English).

    If you could please look into my particular case because the general solutions don’t seem to be working for me. I have added, in the sensitive data box, a temporal user Wp login details in case you need to log in to check it out.

    Thanks in advance

    Alberto
    Rank Math business

    Hello,

    I have just tried to login in the website and check it further but I was not able to log in, could you check it?

    Looking forward to help you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    You are completely right, for some reason the temporal user I created didn’t save well. Sorry for the inconvenience, I have updated the sensitive data box with new WordPress credentials for you to log in. I believe this time you should have no problem.

    Thank so much in advance

    Alberto
    Rank Math business

    Hello,

    I went to the /wp-content/plugins/seo-by-rank-math/ folder and deleted the sitemap cache there. After that cleaned the site cache and saved again the permalinks and now it seems like your problem is solved, the sitemap has only the right languages.

    Could you check?

    Thank you.

    Yeeees!!!! That worked like a charm! THANK YOU SO MUCH for you help, Alberto!

    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 13 replies - 1 through 13 (of 13 total)

The ticket ‘Sitemap not updating’ is closed to new replies.