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:
/root/blog/
/root/forum/
/root/framework
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?
Page 1 of 1
Common Yii framework folder for many applications mod rewrite?
#2
Posted 11 February 2010 - 02:52 AM
Why don't you configure 2 VirtualHosts in Apache for the two applications?
#3
Posted 11 February 2010 - 07:03 AM
Mike, on 11 February 2010 - 02:52 AM, said:
Why don't you configure 2 VirtualHosts in Apache for the two applications?
Problem is that I'm using external hosting. I can't create vitualHosts, therefore I need to use mod rewrite (I think so...)
I'm not complete idiot... some parts are missing!
#4
Posted 11 February 2010 - 07:14 AM
blog and forum are subdomains = vhosts
have a look at the demos folder/application-structure
each application there has its own subfolder, so you call domain.com/blog, domain.com/forum
have a look at the demos folder/application-structure
each application there has its own subfolder, so you call domain.com/blog, domain.com/forum
Share this topic:
Page 1 of 1

Help














