Welcome Guest, Not a member yet? Register   Sign In
How to make CI codebase work in 3 sub-domain?
#5

(09-28-2016, 07:14 AM)rtenny Wrote:
(09-27-2016, 11:52 PM)falcon812311 Wrote: Hi,
I'm newbie in Codeigniter, how to make CI framework woking in deffrent subdomain???

rather then multiplying the /systems folder I do this

Lets assume you have the website in /home/user/domain
you add these folders


/home/user/domain/application_sub1
/home/user/domain/application_sub2
/home/user/domain/application_sub3
/home/user/domain/system

/home/user/domain/public_html
/home/user/domain/public_html/sub1
/home/user/domain/public_html/sub2
/home/user/domain/public_html/sub3

This way you have the controller and views separated and still only use one system base. When you upgrade CI you just need to copy one /system folder

you also need to change the index.php in each of the public_html folders

/public_html
    $system_path = '../system';
    $application_folder = '../application';

/public_html/sub1
    $system_path = '../../system';
    $application_folder = '../../application_sub1';

etc..



Hope this helps
Thanks, i will try.
This is me. JK not me.
Reply


Messages In This Thread
RE: How to make CI codebase work in 3 sub-domain? - by falcon812311 - 10-03-2016, 07:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB