How to develop multiple CI's website on local machine? |
[eluser]Alhazred[/eluser]
I'm already developing a website using CI on my PC (Windows), now I should start to develop a 2nd one. At the moment the 1st website is placed into the XAMPP root, htdocs, and into the hosts file I've put the line 127.0.0.1 www.site1.com so that I can use what will be the true address on internet. Is there a way to put both the 1st and the 2nd CI website into 2 subfolders to keep them divided and say to the hosts file: www.site1.com maps to htdocs/site1 and www.site2.com maps to htdocs/site2? I suppose that I will also have to change something into CI config and htaccess files, isn't it? What?
[eluser]bgreene[/eluser]
i have www/sitex.com www/sitex.com/assets www/sitex.com/downloads www/sitex.com/index.php www/sitey.com/ www/sitey.com/assets www/sitey.com/downloads www/sitey.com/index.php www/siteapps www/siteapps/ci_application www/siteapps/ci_application/sitex/ (contains config,controllers,core etc etc) www/siteapps/ci_application/sitey/ (contains config,controllers,core etc etc) www/siteapps/ci_system
[eluser]CroNiX[/eluser]
Yep, create a virtualhost for each site. http://httpd.apache.org/docs/current/vho...mples.html
[eluser]Alhazred[/eluser]
Thank you, I've used the virtualhost solution, it works fine ![]() |
Welcome Guest, Not a member yet? Register Sign In |