Welcome Guest, Not a member yet? Register   Sign In
Question on Multiple Sites with One Code Base
#1

[eluser]Freewolf[/eluser]
Greeting All,

I have one application base serving up the same (though slightly different content) for three sites. Works like a charm and has made me a huge fan of CI.

However with the www/ root, I have one instance shared with the three sites. However I realize that this will create problems with the robots.txt file and a few other things.

I would prefer to to replicate the www/ three times as the three sites share images and css files.

However is there a way to have the images and css directories reside outside the root level.
Thus something like:

www/
images/
css/
site_1_root_level/
downloads/
robots.txt
sitemap.xml
index.php
site_2_root_level/
downloads/
robots.txt
sitemap.xml
index.php
site_3_root_level/
downloads/
robots.txt
sitemap.xml
index.php
#2

[eluser]Freewolf[/eluser]
Anyone have any thoughts on how to accomplish this? I am really interested in avoiding replicating the www/ directory with shared CSS and images.
#3

[eluser]Joseph Wensley[/eluser]
If each of those sites has it's own domain name you could make a subdomain for each that points to the same folder for images/css eg. static.domain.com, static.domain2.com, static.domain3.com

www/
static/
images/
css/
site_1_root_level/
site_2_root_level/
site_3_root_level/




Theme © iAndrew 2016 - Forum software by © MyBB