2019-11-21, 23:32:34
(2019-11-21, 19:56:39)Cre8gent Wrote:(2019-11-17, 22:44:20)smdp-1971 Wrote:(2019-11-16, 20:54:57)Cre8gent Wrote: Hi i am also having issues with the default language.
I have Swedish for 0
and English for 1
but the site always resorts to English 1 on reset of cookies
any idea how to resolve this?
Edit your .htaccess with this code:
Code:RewriteRule ^/?$ sv/ [R,L] # optional
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(sv|en)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(sv|en)/?$ index.php?lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$2&lang=sv [QSA,L]
Hi smdp-1971, i have tried that but once that is in .htaccess , when you select english in the drop down it always remains Swedish
Ok, go to settings and add: %nondefaultlanguage%/%parent%/%slug%/ in Custom Permalink Structure: