Background
==========

I am creating a web application using Yii, I am separating the site and supporting files from my application using sub domains. I am mapping my subdomains like so.

```
'urlManager'   => array(
        'urlFormat' => 'path',
        'rules'     => array(
            /* gii for developement, remove this in production */
            'gii'                                                                   => 'gii',
            'gii/<controller:\w+>'                                                  => 'gii/<controller>',
            'gii/<controller:\w+>/<action:\w+>'                                     => 'gii/<controller>/<action>',

            /* Sub domain mapping */
            'http://<module:\w+>.<hostname:[^\/]+>/'                                         => '<module>/',
            'http://<module:\w+>.<hostname:[^\/]+>/<controller:\w+>/<id:\d+>'                => '<module>/<controller>/view',
            'http://<module:\w+>.<hostname:[^\/]+>/<controller:\w+>/<action:\w+>/<id:\d+>'   => '<module>/<controller>/<action>',
            'http://<module:\w+>.<hostname:[^\/]+>/<controller:\w+>/<action:\w+>'            => '<module>/<controller>/<action>',

            /* Website URL Mappint */
            '<controller:\w+>/<id:\d+>'                                             => '<controller>/view',
            '<controller:\w+>/<action:\w+>/<id:\d+>'                                => '<controller>/<action>',
            '<controller:\w+>/<action:\w+>'                                         => '<controller>/<action>',
        ),
    ),

```

This is all working as expected, my problem is when I need to redirect between modules. Whenever I try and $this->forward() to another subdomain I end up in the same subdomain. 

Example
=======

When on app.examplesite.com I try and forward to www.examplesite.com/user/login but end up at app.examplesite.com/user/login

$this->forward(Yii::app()->createAbsoluteUrl('user/login'));

Question
========

How do I correctly redirect from app.examplesite.com to www.examplesite.com/user/login?