PHP code example of craftsnippets / locale-redirect

1. Go to this page and download the library: Download craftsnippets/locale-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/ */

    

craftsnippets / locale-redirect example snippets



return [
	'redirectMapping' => [
	    'en' => 'site_en_handle',
	    'ru' => 'site_ru_handle',
	],
];