• Resolved carlosmorando

    (@carlosmorando)


    I have a site that displays dynamic content and affiliate links for every registered user, giving them a unique subdomain, i use a external service for the users database. The URLs are relative via functions but the language selector doesnt work, always loosing the subdomain.

    Any suggestions on how to fix this?

    The page I need help with: [log in to see the link]

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

    (@alexcozmoslabs)

    Hi,

    If you have a multisite environment with links leading to each other, those will be seen as internal links because they have the same domain, although they should be seen as external ones.
    Also, you should not name the subdirectories same with the name of the language slug — for example,https://www.example.com/en and https://www.example.com/es/.
    That’s because when you have additional languages added to the website, the subdirectory name and also the slug language are added, and you will have https://www.therealcbd.com/es/es for example, which will confuse google and lead you to these hreflang errors you are already encountering + other redirection issues.

    Thread Starter carlosmorando

    (@carlosmorando)

    I think I dindn’t explain the site quite right.

    The site works with our external client database and offers the user their own replicated site (ie. client1.domain.com, client2.domain.com…) all in subdomain form, its not really multisite, we use only one WP instalation and all its running in the same site. We use the plugin to show or hide content realtive to the country/language selected by the user. The problem we are triying to solve is when the user is in their own replicated site (ie. customer359.domain.com/product/sale) the language switcher sends them to the root site with the correct language code but with no subdomain (ie. domain.com/esp/product/sale).

    We are looking for a way to mantain the subdomain when changing laguage.

    Plugin Support Alex

    (@alexcozmoslabs)

    Hi,

    That’s because the code is somehow confused because of the fact that there is the same domain name.
    From what I know, there is no direct support for this, only if you intend to contact a developer for a customized solution.


    Kind Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Relative URL translation’ is closed to new replies.