Hi I nearly all the links in the attachment-sitemap.xml are 404 dead links, I have no idea how to remove them, and rebuild sitemap?
I tried following things in here but it appears my rankmath is different.
Thank you for any help!
- This topic was modified 5 months, 1 week ago by Travis Sichel.
Edit: I found there was an “Advanced Mode” on the top right of RankMath dashboard section. Now it added an option for “Attachments” in the “Sitemap Settings” section, and i removed it from the sitemap. However I do not have images in the sitemap? I did select add images to sitemap in the “general Settings”.
How to get images in the sitemap?
Also why was attachment sitemap hidden in advanced mode? Should it be on? However all the links it produces are 404. :/
Please know that the images are already included in your sitemap.
You can open your post or pages sitemap and see the images beside each post’s URL: https://i.rankmath.com/3t6KjL
The option you are referencing to pertains to the attachment pages. We do not recommend enabling attachments, let alone have a separate sitemap for it. The reason being that attachments cause thin content issues and dilute down your website’s authority.
Here’s an article on the topic: https://www.seoblog.com/2018/04/wordpress-attachment-hurt-seo/
If you still want to proceed and enable attachments as well as attachment sitemaps, you can do so from WordPress Dashboard > Rank Math > General Settings > Links. Disable the redirect attachments option: https://i.rankmath.com/zsKRPg
Then, go to WordPress Dashboard > Rank Math > Sitemap Settings > Media and enable the Attachments sitemap.
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.
The ticket ‘attachment-sitemap.xml all 404’s.’ is closed to new replies.