CodeIgniter Forums
Seperate CI Websites One Shared Host? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Seperate CI Websites One Shared Host? (/showthread.php?tid=61568)



Seperate CI Websites One Shared Host? - nehero - 04-26-2015

Hi guys, first post here. I've purchased the shared hosting plan from NameCheap for the year, and it lets me host up to 3 websites. I have the first one working great (after a LOT of fuss), but now I would like to host another SEPERATE CI website. Heres my thought on directory structure:

/public_html
-application
-server
-user_guides
-etc
-domain2.com
-application
-server
-etc


Has anyone tried this before? With what luck? The way the hosting works is that I have to point the additional domain to somewhere in the public_html folder. I'd assume I'd just have to change the config.php base_url to 'http://domain2.com/' right? Or would I have to make it 'http://domain1.com/domain2.com/' . In theory this should all work out, but I'm getting 404s.