• Resolved peter.bohus

    (@peterbohus)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support devnihil

    (@devnihil)

    We understand that you are experiencing an issue with the SEO Premium plugin in that the /en is being removed from the URL in the sitemap. We are aware of this issue with Yoast SEO and there is currently an issue report open with our developers here: https://github.com/Yoast/wordpress-seo/issues/10356. Whereas we are unable to provide an ETA as to when this will be resolved, you can monitor the issue report page for updates on the resolution of this issue.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Please feel free to follow the GitHub issue for further updates. Setting this to resolved to keep the overview going.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong URL in sitemap for second language’ is closed to new replies.