• Resolved gloring

    (@gloring)


    I have an issue with the translations on my website caused by Litespeed Cache. The translations are done using the Weglot plugin. For example, the translation to Italian (/it/) does not work, and the page is displayed in English. If I deactivate the Litespeed Cache plugin, the page is correctly shown in Italian. Upon contacting Weglot support, they confirmed that the problem is related to the Litespeed Cache. I tried excluding /it/, /it/product* from the cache, but the problem persists, and the page continues to be in English. How can I solve this? Thank you.

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

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter gloring

    (@gloring)

    Hi,
    Report number:?MJXAMMHX

    Report date: 08/06/2024 10:14:46

    Thank you

    Plugin Support qtwrk

    (@qtwrk)

    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on

    RewriteCond %{HTTP:Accept-Language} ^it [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+italian]
    RewriteCond %{HTTP:Accept-Language} ^es [NC]
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+spain]
    RewriteCond %{HTTP_COOKIE} ^.*WG_CHOOSE_ORIGINAL.*$
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+wg_choose_original]
    </IfModule>

    please try put this at top of your .htaccess, purge all

    Thread Starter gloring

    (@gloring)

    Yes, it seems to be working! Thank you so much.

    Plugin Support qtwrk

    (@qtwrk)

    the above code only placed 2 languages , if you have more language , please add into it accordingly

    Thread Starter gloring

    (@gloring)

    Hello, I checked again, and unfortunately, the page seems to be displayed in English again, even though Weglot has the URL /it/ and it should be in Italian. I inserted the code in the Htaccess file, but it still doesn’t seem to be working. Here is the page: https://gloringstore.com/it/product/gloring-smart-ring/. Can you let me know what I can do? Thanks.

    Plugin Support qtwrk

    (@qtwrk)

    it is showing IT on me , what exactly do you see ?

    Thread Starter gloring

    (@gloring)

    Hello, the code provided in the Htaccess file seems to be working correctly. The problem is that the code disappeared after some time. Does the Htaccess code update itself? How can I ensure that this code doesn’t disappear? Thank you.

    Plugin Support qtwrk

    (@qtwrk)

    where did you put it ? don’t place it between any auto-generated block , it will get overriden in such place

    Thread Starter gloring

    (@gloring)

    Is inserted here (https://ibb.co/jwgCXCj). is this correct? Thanks for your help

    Plugin Support qtwrk

    (@qtwrk)

    no , place it ABOVE that #BEGIN LSCACHE line

    Thread Starter gloring

    (@gloring)

    Ok, done. Thank you

    Thread Starter gloring

    (@gloring)

    Hello, unfortunately, even though the code is in the correct position, the language displayed is still English on the Italian URL. This is a serious issue, and all my Italian clients are seeing the site in English! Sometimes clearing the cache resolves the problem, but I can’t check it every two hours… Please let me know what else I can do. Thank you.

    Plugin Support qtwrk

    (@qtwrk)

    please create a ticket by mail to support at litespeedtech.com with refernece link to this topic , we will check further

    Thread Starter gloring

    (@gloring)

    I have opened the ticket, it’s #730483.
    Thank you for your help!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Translation issue with Weglot and Litespeed Cache’ is closed to new replies.