• Resolved eriikn

    (@eriikn)


    Example:

    I have a site example.com
    I have TranslatePress
    I want it in English, Polish, and Swedish – but each of these languages have unique pages, that should not necessarily exist in all languages.

    Eg.. I create example.com/landing-page-sweden

    Right now… I get all these pages on my site:

    example.com/landing-page-sweden
    example.com/sv//landing-page-sweden
    example.com/pl/landing-page-sweden

    But what I want is just…

    example.com/sv/landing-page-sweden

    And these URL do not exist / respond 404

    example.com/landing-page-sweden
    example.com/pl/landing-page-sweden

    How can this be achieved? I am on the free plugin.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support madalinaruzsa

    (@madalinaruzsa)

    Hi @eriikn,

    Please allow me to explain how our plugin works. If you have English set as the default language and want to translate your site into Polish and Swedish, all of your pages will have the corresponding language codes (pl and sv). For example, if you have a ‘Contact Us’ page in English, the page will become example.com/pl/contact-us for Polish and example.com/sv/contact-us for Swedish.

    Now, you can exclude pages from translation by going to TranslatePress > Settings > Advanced Settings > Exclude Strings > Do not translate certain paths. This way, the excluded pages will no longer have language codes, and when users visit them, they will see the content in the default language.

    Pages with language codes should not trigger a 404 error. Could you please provide more details? Are you experiencing a 404 error when accessing a page in a different language?

    Thread Starter eriikn

    (@eriikn)

    Hi,

    Thank you!

    So basically…

    what I am trying to achieve is that each language have unqiue pages eg…

    I have some pages that should only exist under the /sv/ slug
    some pages only under /pl/ slug
    and som pages only under [nothing] as they are default language (english).

    I dont want for example /sv/landing-page-swedish-25 to also exist as /pl/landing-page-swedish-25.

    This is for SEO purposes where I dont want every single URL to exist for all languages, as it will make huge confusion for google?

    Thanks!

    Plugin Support madalinaruzsa

    (@madalinaruzsa)

    Hi @eriikn,

    TranslatePress is designed to provide translations for existing content on your website while maintaining the same structure for all languages. Unfortunately, it does not natively support creating language-specific pages that are unique to one language and hidden from others.

    However, we’re clearly defining the language and offer the alternative languages in the HTML, so Google should know these are not duplicate content pages, but translated versions. Your translated versions of the pages will be indexed, we have proper hreflang tags that signal the translated version and the language switcher are proper links, so Google will understand them and index them accordingly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.