awesomemotive / all-in-one-seo-pack

All in One SEO plugin for WordPress SEO
https://aioseo.com
339 stars 155 forks source link

attachment_id links in sitemap not available #3177

Closed RobertoDonPedro closed 4 years ago

RobertoDonPedro commented 4 years ago

I have enabled the option Redirect Attachments to Post Parent. Recently I updated to V3.7.1 and the plugin creates links in the sitemap like /?attachment_id=20 since then. But this link does not exist and Google sends a coverage issue. The only way to overcome this issue is to completely disable the post type Media / Attachments in the sitemap setting, but thats not what I want since I do not want to exclude images from search engines.

wpsmort commented 4 years ago

@RobertoDonPedro You wouldn't be excluding images from search, only media attachment pages which are a type of content in WordPress. Please review this article - https://semperplugins.com/documentation/what-are-media-attachments-and-should-i-submit-them-to-search-engines/