Subdomains and modules


I have some domains on my site, and want to redirect each domain on it’s own module. First solution was to create for each domain own index.php with own configurations. But i decide to create rules for urlmanager, and i have such problem.

//example rule




And all ok with creating rules. All rules for admin module create like But when i try go to that link, i recieve error 404, so i understand that he doesn’t parse it. May be someone have such problems?