• Resolved dankimi

    (@dankimi)


    Hello everyone! First of all, congratulations to the creators of this plugin because it works really well, I have activated it and I have not had a problem with it and the web loads faster and my evaluations have gone up in Page speed Insights, unfortunately for me it is not all good news, My theme is translated with loco translate and the translation works perfectly but when you activate litespeed cache there is a problem with the translations, the problem is that it ignores the translation and it will show you the first page you visited if you visited that link in French y Go back to the home page and change English it will show you that same previous link that you visited in French, it does not detect the language change. I would like to know if anyone has had this problem with loco translate activated and how they have solved it. thank you

    • This topic was modified 1 year, 7 months ago by dankimi.
    • This topic was modified 1 year, 7 months ago by dankimi.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support qtwrk

    (@qtwrk)

    is your site multi-language or something ? and also please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter dankimi

    (@dankimi)

    Hello! I just saw the answer now, very grateful for answering so quickly, if I have the page configured for three languages: French, Spanish, and English (the theme brings up to 8). As soon as possible I will send you the report. Thank you. All the best

    Thread Starter dankimi

    (@dankimi)

    Hello! I just sent you the report from the plugin the report number is: QXBXFCBP I hope you can help me. Thank you. Greetings

    Plugin Support qtwrk

    (@qtwrk)

    okay , I don’t see any known mutli-language plugin , may I know how exactly achieve multi-language ? in particular the part of multi-language selector.

    Thread Starter dankimi

    (@dankimi)

    Hello ! Thank you for your attention, the language selector appears in the upper right part (computers and tablets, mobile side menu in langue) comes with a French, English and Spanish flag selector

    Icono de Validado por la comunidad
    Thread Starter dankimi

    (@dankimi)

    The complement that it has active is LOCOTRANSLATE

    Plugin Support qtwrk

    (@qtwrk)

    please try add this at top of your .htaccess

    <IfModule LiteSpeed>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} l= [NC]
    RewriteRule ^ - [CO=lscwp_lang:es_ES:%{HTTP_HOST}:604800:/]
    RewriteCond %{REQUEST_URI} l=en_US
    RewriteRule ^ - [CO=lscwp_lang:en_US:%{HTTP_HOST}:604800:/]
    RewriteCond %{REQUEST_URI} l=es_ES
    RewriteRule ^ - [CO=lscwp_lang:es_ES:%{HTTP_HOST}:604800:/]
    RewriteRule ^ - [E=Cache-Vary:%{ENV:LSCACHE_VARY_VALUE}+lscwp_lang]
    </IfModule>

    then purge all , see if it helps.

    Thread Starter dankimi

    (@dankimi)

    Thanks for your help! I will do what you tell me and I will notify you here of the result, I will not be able to do it until tomorrow. Greetings

    Thread Starter dankimi

    (@dankimi)

    Hello! I have uploaded the code that you provided me in an Htaccess file, I have purged everything and I have retested the page. Unfortunately the same problems continue to appear and it gives errors when the language changes are made, the problem surely comes from the fact that my theme does not Use different urls depending on the language eg: mydomain/fr, mydomain/es. What if my Htaccess file is located in the public_html root directory

    <IfModule LiteSpeed> RewriteEngine On RewriteCond %{REQUEST_URI} l= [NC] RewriteRule ^ - [CO=lscwp_lang:es_ES:%{HTTP_HOST}:604800:/] RewriteCond %{REQUEST_URI} l=en_US RewriteRule ^ - [CO=lscwp_lang:en_US:%{HTTP_HOST}:604800:/] RewriteCond %{REQUEST_URI} l=es_ES RewriteRule ^ - [CO=lscwp_lang:es_ES:%{HTTP_HOST}:604800:/] RewriteRule ^ - [E=Cache-Vary:%{ENV:LSCACHE_VARY_VALUE}+lscwp_lang] </IfModule> RewriteEngine On RewriteCond %{HTTP_HOST} midominio\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.midominio.com/$1 [R,L] # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## <IfModule LiteSpeed> RewriteEngine on CacheLookup on RewriteRule .* - [E=Cache-Control:no-autoflush] RewriteRule \.litespeed_conf\.dat - [F,L] ### marker FAVICON start ### RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400] ### marker FAVICON end ### ### marker WEBP start ### RewriteCond %{HTTP_ACCEPT} "image/webp" RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp] RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari RewriteCond %1 >13 RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp] ### marker WEBP end ### ### marker DROPQS start ### CacheKeyModify -qs:fbclid CacheKeyModify -qs:gclid CacheKeyModify -qs:utm* CacheKeyModify -qs:_ga ### marker DROPQS end ### </IfModule> ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END LSCACHE # BEGIN NON_LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END NON_LSCACHE # BEGIN WordPress # Las directivas (líneas) entre ?BEGIN WordPress? y ?END WordPress? son # generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress. # Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BEGIN ShortPixelWebp # Las directivas (líneas) entre ?BEGIN ShortPixelWebp? y ?END ShortPixelWebp? son # generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress. # Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas. # END ShortPixelWebp # BEGIN ShortPixel Adaptive Images # Las directivas (líneas) entre ?BEGIN ShortPixel Adaptive Images? y ?END ShortPixel Adaptive Images? son # generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress. # Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas. # END ShortPixel Adaptive Images

    If I enter the home page of my page and select English and then go to one of the ads on the page, advertisement1, it correctly goes to advertisement1 in English. If I return to the home page and change to Spanish, the home page will appear in Spanish and if I go after a, announcement1, will appear in English and not in Spanish and that for all the pages. I have not seen a question in the entire forum in relation to what is happening to me and that is strange given the numerous installations that there are of litespeed cache and locotranslate

    Plugin Support qtwrk

    (@qtwrk)

    did you actually combine them into one-line code ?

    Thread Starter dankimi

    (@dankimi)

    Hello! In the Htaccess file there are several lines of code from top to bottom, when I uploaded it here in the message everything appeared in one line, I don’t know the reason

    Thread Starter dankimi

    (@dankimi)

    RewriteEngine On RewriteCond %{REQUEST_URI} l= [NC] RewriteRule ^ - [CO=lscwp_lang:es_ES:%{HTTP_HOST}:604800:/] RewriteCond %{REQUEST_URI} l=en_US RewriteRule ^ - [CO=lscwp_lang:en_US:%{HTTP_HOST}:604800:/] RewriteCond %{REQUEST_URI} l=es_ES RewriteRule ^ - [CO=lscwp_lang:es_ES:%{HTTP_HOST}:604800:/] RewriteRule ^ - [E=Cache-Vary:%{ENV:LSCACHE_VARY_VALUE}+lscwp_lang]
    RewriteEngine On
    RewriteCond %{HTTP_HOST} midominio.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.midominio.com/$1 [R,L] BEGIN LSCACHE LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!
    
    
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule .litespeed_conf.dat - [F,L] marker FAVICON start
    
    RewriteRule favicon.ico$ - [E=cache-control:max-age=86400] marker FAVICON end marker WEBP start
    
    RewriteCond %{HTTP_ACCEPT} "image/webp"
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    RewriteCond %{HTTP_USER_AGENT} iPhone.Version/(\d{2}).Safari
    RewriteCond %1 >13
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp] marker WEBP end marker DROPQS start
    
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga marker DROPQS end LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! END LSCACHE BEGIN NON_LSCACHE LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! END NON_LSCACHE BEGIN WordPress Las directivas (líneas) entre ?BEGIN WordPress? y ?END WordPress? son generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress. Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.
    
    RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPress BEGIN ShortPixelWebp Las directivas (líneas) entre ?BEGIN ShortPixelWebp? y ?END ShortPixelWebp? son generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress. Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas. END ShortPixelWebp BEGIN ShortPixel Adaptive Images Las directivas (líneas) entre ?BEGIN ShortPixel Adaptive Images? y ?END ShortPixel Adaptive Images? son generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress. Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas. END ShortPixel Adaptive Images
    • This reply was modified 1 year, 6 months ago by dankimi.
    Thread Starter dankimi

    (@dankimi)

    I have omitted my domain for privacy reasons

    Plugin Support qtwrk

    (@qtwrk)

    okay, but seems there is no way this can work without cookie , I tried to use rewiterule to set cookie based on query string, but some page won’t have query string when set language ??

    Thread Starter dankimi

    (@dankimi)

    I appreciate your help. I will look through the creator of the theme if it is possible to generate links for the fr/es/en languages, surely it could solve the problem. Greetings

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘COMPATIBILITY LOCOTRANSLATE’ is closed to new replies.