PHP code example of liquidbcn / craftcms-language-redirect
1. Go to this page and download the library: Download liquidbcn/craftcms-language-redirect library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
liquidbcn / craftcms-language-redirect example snippets
return [
'defaultLanguage' => 'en-GB',
'urls' => [
'ca' => '/ca/',
'ca-ES' => '/ca/',
'es' => '/es/',
'es-ES' => '/es/',
'en-GB' => '/en/',
'en-US' => '/en/',
'en' => '/en/'
]
];