Hello WA community!

My sitemap is generated by AIO-SEO. How can I remove these lines from my xml sitemap? These must be images, which I either renamed or deleted, but the URLs (.../cropped-teach-jpg; .../cropped-mg_6784_small-jpg ) are still being created for them. Why?

I "updated" xml map file - it didn't help. I renamed sitemap.xml to sitemap-index.xml - these lines were still re-created. I guess, it's not even a matter of removing the lines, but finding the cause: what keeps generating them? Any ideas would be highly appreciated.

Thank you!

~ Julia


Join the Discussion
Write something…
Recent messages
Jewelia Premium
I got it resolved! Thank you all!

I played with different versions of the image files in the site customization - for my site's header and logo. I then deleted unused file versions, but somehow they got "stuck" in the media library, and WP renamed them with "-jpg" or "-png".

I searched every single file in my website (including plugins and theme source files) then went through each image in my Media Library, and finally discovered the removed files with the remaining permalinks references!

I clicked again "Delete Permanently" on each of them, and now they are gone for good, and do not appear in my Sitemap.xmp

Phew!

Thank you again,

~ Julia
Reply
EOPolini Premium
Hi Julia, I'm not an expert on this, but I can't help to wonder why this is concerning you; since I only worry about the plugin being properly set-up and don't look at the content of the site map. I figure you wouldn't want to exclude images, but, you could delete your current sitemap, double check the settings and start fresh. Hope you find the solution!
Reply
Jewelia Premium
Hi Edwin,

Of course it concerns me: Google bot uses sitemap to crawl your pages, posts, images, etc. It then uses keywords in the content of the website files to rank the posts. So, Google bot reads my sitemap, tries to crawl every path it found there, but there is no file at the provided URL. Errors diminish Google's trust to my website.

The sitemap is an .xml file located on the server at https://[mywebsiteurl.com]/sitemap.xml
I didn't find a way to delete it (maybe I could via FTP). However, I found a way to trick the sitemap generator, and gave the file a different name: instead of "sitemap.xml", I called it "sitemap-index.xml". This should serve more or less like deleting and re-creating a file (even though I didn't delete, I created a new one). However, the new file was created again with the same URLs of the missing images. So, I wish I could "double check the settings and start fresh", but I don't know what settings to double-check. I don't know where these paths come from and why they are being recreated...

I hope that someone would give me a tip on where to look and what to check.

Thank you,

~ Julia
Reply
EOPolini Premium
I understand, I figure if the settings are right I can trust the plugin. Anyway, deleting the current sitemap is at your Google search console, then you would resubmit after double checking your settings. I know is tedious going through all the settings, but, this is what I did and just followed the suggested settings. Other than that, I know there is a troubleshooter, although I never used it. Another thing worth mentioning is the sitemap only works with pretty link structure, so perhaps check that. I hope someone else can give you better pointers!
Reply
Jewelia Premium
Thank you, Edwin.
Reply
EOPolini Premium
You're welcome my friend!
Reply
Top