Having played around with it for the past couple of days, I have a solution to my problem

The key is to amend the order of the

'contexts' =>
array (
'main::en_GB' => array (),
'b1visas::en_GB' => array('http://www.b1visas.co.uk/',),
'challenge::en_GB' => array('http://www.challengehomeoffice.com/',),
'cyprus::en_GB' => array('http://www.cyprusimmigration.eu/',),
),

so that the main (catch all)

'contexts' =>
array (
'b1visas::en_GB' => array('http://www.b1visas.co.uk/',),
'challenge::en_GB' => array('http://www.challengehomeoffice.com/',),
'cyprus::en_GB' => array('http://www.cyprusimmigration.eu/',),
'main::en_GB' => array (),
),


goes at the end
By thomas , 1 July 2015 ·
To
    ou Annuler
Redirect on site context
By thomas , 28 June 2015
To

I have various domain names.

I would like to be able to automatically redirect between site contexts

So, as an example, I have a site context set up for:

return array (
    'sites' =>
    array (
        'main' =>
        array (
            'title' => 'Main site',
            'alias' => 'Main',
        ),
        'b1visas' => array(
            'title' => 'B1 Visas site',
            'alias' => 'b1visas',
            'http://www.b1visas.co.uk/',
         ),
        'challenge' => array(
            'title' => 'Challenge Home Office',
            'alias' => 'challenge',
            'http://www.challengehomeoffice.com/challenge/en_GB/',
         ),
       'cyprus' => array(
            'title' => 'Cyprus Passports and Immigration',
            'alias' => 'Cyprus',
            'http://www.cyprusimmigration.eu/',
            'http://www.cyprusimmigration.co.uk/',
         ),


    ),
    'locales' =>
    array (
        'en_GB' =>
        array (
            'title' => 'English',
            'flag' => 'gb',
        ),
    ),
    'contexts' =>
    array (
        'main::en_GB' => array (),
        'b1visas::en_GB' => array('http://www.b1visas.co.uk/',),
        'challenge::en_GB' => array('http://www.challengehomeoffice.com/',),
        'cyprus::en_GB' => array('http://www.cyprusimmigration.eu/',),
    ),
)#;

 

 

Is it possible to automatically redirect access to

 

http://www.cyprusimmigration.eu/

 

to go to the URL

http://www.cyprusimmigration.eu/cyprus/en_GB/