Hi everyone,
I launched an english version of my website a few weeks ago. It’s working like a charm. Here’s the config :
//LANGS
c::set('language.detect', false);
c::set('languages', array(
array(
'code' => 'fr',
'name' => 'Français',
'default' => true,
'locale' => 'fr_FR',
'url' => '/fr',
),
array(
'code' => 'en',
'name' => 'English',
'locale' => 'en_US',
'url' => '/en',
)
));
Since my primary language is french but I want non-french readers to be directed to the english website, I used this in the .htaccess file :
# language starts with FR
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
RewriteRule ^$ /fr/ [L,R=301]
# language starts with EN
RewriteCond %{HTTP:Accept-Language} ^en [NC]
RewriteRule ^$ /en/ [L,R=301]
# else redirect to the English version
RewriteRule ^$ /en/ [L,R=301]
But I forgot I had a subdomain blog! It’s using the multisite config of kirby and if almost everything works normally, the blog is not multilang at all. Now the homepage redirects to /en or /fr even if I remove the htaccess lines.
Is there any way of getting this subdomain work as a single language site again?