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.
@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) ?
@anshulbijoux Try: fr => french