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