Welcome Guest, Not a member yet? Register   Sign In
How to develop multiple CI's website on local machine?
#1

[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?
#2

[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
#3

[eluser]CroNiX[/eluser]
Yep, create a virtualhost for each site.
http://httpd.apache.org/docs/current/vho...mples.html
#4

[eluser]Alhazred[/eluser]
Thank you, I've used the virtualhost solution, it works fine Smile




Theme © iAndrew 2016 - Forum software by © MyBB