Welcome Guest, Not a member yet? Register   Sign In
Multiple Applications
#4

[eluser]pickupman[/eluser]
Just tried this on a subfolder that I have the same setup on.
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^myfirstapp/(.*)$ myfirstapp.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^mysecondapp/(.*)$ mysecondapp.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

You will need to edit your application/config.php to match the urls properly. I am using a the same site assets (css/js/images) that are in the same level as index.php. So I need each app to generate links like http://site/ci/myfirstapp/controller and have css links generated like
http://site/ci/(asset url).

In application/myfirstapp/config/config.php
Code:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/ci/";
$config['index_page'] = "myfirstapp/";

Just change index_page accordingly for each app.


Messages In This Thread
Multiple Applications - by El Forum - 03-02-2011, 04:11 PM
Multiple Applications - by El Forum - 03-02-2011, 07:40 PM
Multiple Applications - by El Forum - 03-03-2011, 08:33 AM
Multiple Applications - by El Forum - 03-03-2011, 08:53 AM
Multiple Applications - by El Forum - 03-03-2011, 11:30 AM
Multiple Applications - by El Forum - 03-03-2011, 11:35 AM
Multiple Applications - by El Forum - 04-06-2011, 06:40 AM
Multiple Applications - by El Forum - 04-06-2011, 07:53 AM
Multiple Applications - by El Forum - 04-06-2011, 08:33 AM
Multiple Applications - by El Forum - 04-06-2011, 12:59 PM
Multiple Applications - by El Forum - 04-07-2011, 01:01 AM
Multiple Applications - by El Forum - 04-07-2011, 06:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB