Wrong URL in sitemap for second language
-
Hello,
we encounter problems with url in sitemap for second language attachments (attachment-sitemap.xml).
We have 2 languages on site and for english language, urls in that sitemaps are wrong.
We are using WPML and our language urls are: domian.tld main language and domain.tld/en for english language.
We have everything up to date.In search console we have so many 404, because all english language attachment urls missing /en/
If I check posts and both CPTs and categories/taxonomies all urls are correct, but attachment urls are with missing /en/ in urls.
For example:
in sitemap attachment-sitemap.xml is: products/woodled-square-900/attachment/trilum_woodled_slope_1200_european_white_oak-3/
but correct url is: en/products/woodled-square-900/attachment/trilum_woodled_slope_1200_european_white_oak-3/PS: for a moment I set in plugin Search Appearance > Media > Show Media in search results to not include – which will not generate sitemap for attachments, but could be good to have them in sitemap.
Thank you in advance for any help
- The topic ‘Wrong URL in sitemap for second language’ is closed to new replies.