Skip Navigation

Resolved

Topic Tags: Compatibility

Symptoms

If you translate your post taxonomy with Remove categories prefix enabled in Yoast’s category URL settings, visiting the translated category will redirect to the default language or display a 404 error. It may also affect canonical URLs.

Workaround

Do not to translate the category slug. The untranslated term won’t be visible in the URL anyway when Remove categories prefix is turned on.

2 所有回复 给 “Yoast SEO: Turning on “Remove categories prefix” causes issues with secondary languages”

  1. Hi

    For me the workaround does not work. The default language works fine, the translations are broken. I did not translate the category slugs.

    The links in the language switcher seem to produce the right links to the corresponding URLs, but I get 404 errors on all category archives, except for the default language.

    I have the languages mapped to different domains and subdomains:

    default language -> domain_A.com (works as expected, no prefix, correct links)
    translation 1 -> hreflang1.domain_B.com (404 on category archive)
    translation 2 -> hreflang2.domain_B.com (404 on category archive)

留下回复

请在此留下仅与此页相关的评论。
要获得技术支持或提供功能建议,敬请访问我们的论坛

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>