• Resolved Anshul

    (@anshulbijoux)


    Hello, we have an issue with translating our website using weglot and Litespeed Cache. The translations are done using the Weglot plugin. For example, the translation to french (/fr/) does not work, and the page is displayed in English.

    Once the Litespeed Cache plugin is deactivated, everything works properly. We use French, Spanish, Italian and german languages

    How to fix this.
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Anshul

    (@anshulbijoux)

    We have seen your 2024 post on this, the solution you provided is working but we need code for all these 4 languages is (french, spanish, italian and german)

    Also, it would be great help if you can give us the code when we use litespeed cache + conveythis.

    conveythis is same as weglot and have same funstionalties.

    Thanks you.

    Plugin Support litetim

    (@litetim)

    @anshulbijoux can you give the link to the solution provided?

    Thread Starter Anshul

    (@anshulbijoux)

    Thread Starter Anshul

    (@anshulbijoux)

    in the 2024 post, you have mentioned code as

    <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>

    you have referred Italian language as Italian and for Spanish you have mentioned spain.
    so I am confused, for French should we mention French or France.

    also will it work for conveythis plugin (similar language translator plugin to weglot) ?

    Plugin Support litetim

    (@litetim)

    @anshulbijoux Try: fr => french

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

You must be logged in to reply to this topic.