Welcome Guest, Not a member yet? Register   Sign In
multiple site setup
#1

[eluser]Unknown[/eluser]
Hi,

I'm setting up a multiple site in one CI installation using the steps stated in this documentation ()http://ellislab.com/codeigniter/user-gui..._apps.html. However, I'm having problems routing it.

Here's the folder structure:
- site1
- application [the usual application folder of CI that contains the controller, model, view, etc]
- js
- uploads
- site2
- application [the usual application folder of CI that contains the controller, model, view, etc]
- js
- uploads
- public
- css
- js
- theme
- system [the usual system folder of CI]

On each site folder, I copied the [index.php] file from the root folder and pasted it to each site folder (site1 and site2) and modified the following variables:
[site1]
Code:
$system_path = '../system';
$application_folder = '../site1/application';

[site2]
Code:
$system_path = '../system';
$application_folder = '../site2/application';

I also have a htaccess file on my root to remove the "index.php" on the address.
Code:
RewriteEngine On
RewriteBase /www/testsite/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /www/testsite/index.php/$1 [L]

It's giving me an error message of :
"Your application folder path does not appear to be set correctly. Please open the following file and correct this: index.php"

I have a controller [admin.php] with methods (ex: login, dashboard). I am able to access [http://localhost/www/testsite/site1/] but not the [http://localhost/www/testsite/site1/admin] nor [http://localhost/www/testsite/site1/admin/dashboard]. But when I set it up using the usual setup of CI, it works perfectly fine.

Are there anything I'm missing or needs to be fixed?
Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB