back to default lang
-
Hello and congrats for this useful plugin!
Please help regarding the following problem:
Site uzinadezambete.ro, using standard twentythirteen with qtranslate-x beside multiple other plugins, with option “Hide URL language information for default language” set to on, three langs: default-ro/en/it, different slug for each page/post. No problem going from default to en/it, or between en/it. same on firefox/opera/chrome/ie.
– from site/en with click on default-lang-flag, hoover shows site/default but going to site/en
– from site/en/page-slug-en with click on default-lang-flag, hoover shows site/default/page-slug-default, page change to site/en/page-slug-default.
– same for ithere https://ww.wp.xz.cn/support/topic/site-redirection-to-other-languages?replies=2 you suggest to remove cookies, but this does’n change the behavior, i even setup one browser to no cookies at all.
here https://ww.wp.xz.cn/support/topic/language-switch-problem-firefox?replies=20 are multiple posibilities: disabling all other plugins doesn’t fix, with hide url off it goes well – but that’s not what i want, with esc_url( home_url( ‘/’ ) doesn’t fix.
here https://ww.wp.xz.cn/support/topic/cant-switch-back-to-default-language?replies=5 i’m confised about && isset($_SERVER[‘REDIRECT_STATUS’]);, and following https://qtranslatexteam.wordpress.com/2015/02/26/browser-redirection-based-on-language/ puts me on the “one may expect the URL without a language to be always resolved to the default language” side, but since hoover shows correct url i can only guess that there is something else going wrong after.
.htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>
# END W3TC Browser Cache
The topic ‘back to default lang’ is closed to new replies.