LiquidBarcelona / craftcms-language-redirect

Other
0 stars 1 forks source link

Sites without suffix #4

Open alexanderloewe opened 1 year ago

alexanderloewe commented 1 year ago

The plugin works wonderfully.

Unfortunately, I currently have a problem: We work with a multi-site website, which not only uses multiple languages, but also multiple website with different domains. But now, not all websites should have a language suffix in the URL.

Is there a solution for this? So to say to exclude certain pages?

mbernet commented 1 year ago

Hi @alexanderloewe ,

Have you tried using absolute urls in the configuration file?

For example:

'ca'    => 'http://domain1.com',
        'ca-ES' => '/ca/',
        'es'    => '/es/',
        'es-ES' => '/es/',
        'en-GB' => '/en/',
        'en-US' => '/en/',
        'en' =>    '/en/'