I think this is common problem, but somehow I can’t find solution for it (my mod rewrite knowledge is really week).
Lest imagine I’ve following structure on my server:
I wan’t to use /root/framework for both applications: blog and forum (in each index.php yii.php points to /root/framework/yii.php)
When I’m accessing my site via www.mydomain.com or www.blog.mydoiman.com I wan’t to use blog application, when www.forum.mydomain.com I want to use application form /root/framework.
How to write mod rewrite rules to do not brake including of yii.php?