Yii Framework Forum: Common Yii framework folder for many applications - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Common Yii framework folder for many applications mod rewrite? Rate Topic: -----

#1 User is offline   aztech 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 206
  • Joined: 12-December 08
  • Location:Poland

Posted 10 February 2010 - 05:44 PM

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?
I'm not complete idiot... some parts are missing!
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,016
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 11 February 2010 - 02:52 AM

Why don't you configure 2 VirtualHosts in Apache for the two applications?
0

#3 User is offline   aztech 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 206
  • Joined: 12-December 08
  • Location:Poland

Posted 11 February 2010 - 07:03 AM

View PostMike, 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!
0

#4 User is offline   mbi 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 604
  • Joined: 08-May 09

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users