views:

73

answers:

1

Hello, everybody

I'd like to know if it is possible to organize the following structure of the CodeIgniter installation:

- Main folder
-- codeigniter
-- images
-- site1-application
-- site2-application
-- site1-index.php
-- site2-index.php

The main idea is to use the same images and codeigniter folder across the multiple web sites for easier maintanance.

For now I do have two web sites that are resides in two standard installations and I'm unable to share the images folder nor to update system libraries simulaneously at multiple web sites.

I've played alittle with the .htaccess file, but no luck for me :(

Thanks in advance!

A: 

Yes, it's possible.

Use .htaccess to direct all trafic from one domain to site1-index.php and all traffic from another domain to site2-index.php.

The location of CI Application and System folders is set in the *-index.php files.

micflan
Thank you for your answer. Could you, please, help me with the .htaccess scripts, because they looks like a voodoo rather than programming?
Evan