Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Quote from the plugin author;

    The way it is done is “by design” and “on purpose”, since that link must switch the language. It will not switch the language in case a person already visited the site and already set other language.

    We also include hreflang=”x-default”, which has the default link which you wish, to let google know that the site can be accessed with default url where language can be chosen later.

    I think this is done as Google recommends it.

    The default link without language does not necessarily mean the “default” language. It means the language is to be chosen by browser, user, or by any other mean: read also this
    /en ensures that the language will be switched to English, instead of showing previously active.

    Thread Starter hommeexmachina

    (@hommeexmachina)

    I saw that reply somewhere, but it is not satisfying solution for me (from SEO point of view we should avoid 302 redirects). Is there any way to set it up as I described above?

    What then helps is this – Settings – Languages – General – URL Modification Mode – uncheck – Hide URL language information for default language.

    • This reply was modified 9 years, 6 months ago by terry789.
    Thread Starter hommeexmachina

    (@hommeexmachina)

    Yeah, I thought it would work that way, but whan I uncheck it mywebsite.com redirects to random language directory. I need:

    <link hreflang=”x-default” href=”https://www.mywebsite.com/” rel=”alternate” />
    AND
    <link hreflang=”en” href=”https://www.mywebsite.com/en/” rel=”alternate” />

    where both URLs have NO redirects.

    but whan I uncheck it mywebsite.com redirects to random language directory.

    I do not understand this.. it does not redirect random (?)

    yoursite.com/en goes to yousite.com/en only if the user cookie is set to a different language it goes to that different language.

    Browser re-direction based on language

    Thread Starter hommeexmachina

    (@hommeexmachina)

    Sorry, I put it in the wrong words. I mean that with this option unchecked mywebsite.com redirects to the directory based on language. BUT I need the en version available under mywebsite.com, not under mywebsite.com/en/.

    Then we’re back at the starting point…

    Checked – Hide URL language information for default language. Gives correct mywebsite.com without the language information.

    Other languages do have such information in the URL /de /fr for example.

    if it is set to – Hide URL language information for default language. The site links in Google are also shown without (default) language information and that is correct.

    So this plugins works this way by desing.

    Thread Starter hommeexmachina

    (@hommeexmachina)

    Maybe it works this way by design, but I need to know how to change this. I attach some screens, maybe they will help you understand what results I want to achieve:

    https://t.gyazo.com/teams/elephate/47f0c09b101e6824b1fad7746a5c1f84.png – current plugin configuration
    https://t.gyazo.com/teams/elephate/de17daa266777929336640bd5d2426a1.png – hreflangs with current plugin configuration

    I crossed out the code line I want to get rid of. All the other lines are correct.

    As far as my knowledge goes, this is not possible and also has no purpose.

    /en ensures that the language will be switched to English, instead of showing previously active.

    hommeexmachinaб, did you found any solution?

    terry789, when I check – Hide URL language information for default language – plugin creates 302 redirection from http://diplomguide.ru/ru/ to http://diplomguide.ru/

    How can I change redirection type from 302 to 301?
    It’s important for Google.

    • This reply was modified 9 years, 4 months ago by gromadus.
    Plugin Author John Clause

    (@johnclause)

    I am sorry for your trouble. We currently do not have resources to answer support questions for free and rely on the community to provide a possible solution, which seems to work well in many cases. Many thanks to our active community members who take a good time to answer people’s problems!

    We need to figure out a way to monetize the support and further development. We would highly appreciate if you take about 5 minutes of your time to respond to the survey linked here: https://ww.wp.xz.cn/support/topic/what-is-the-future-of-qtranslate-x/

    Any ideas and additional input are also welcome, use the same thread linked above for everyone to see your thoughts.

    Thanks a lot!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Redirect in /en/ version’ is closed to new replies.