Welcome Guest, Not a member yet? Register   Sign In
.htaccess issue on new CI build
#6

[eluser]excitedcroc[/eluser]
ok so I now have 2 applications running symultaneously...

Code:
/webroot
    /applications
        /app1
        /app2
    /system
index.php
app2.php


So the index.php file loads up the app1 directory and works fine as it is using the default index page and therefore the url is just www.mysite.com/controller/function/params

However app2 has to run on www.mysite.com/app2.php/controller/function/params

This is working just fine, but the url looks a bit wrong with the '.php' bit in the middle...

Any ideas how I can change my config or htaccess to make the url just www.mysite.com/app2/controller/function/params ???

My configs are as follows

.htaccess
Code:
RewriteEngine On
AddHandler application/x-httpd-php5 .php

RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]

RewriteCond $1 !^(index\.php|app2\.php|images|css|js|robots\.txt|admin_html|temp|uploads|plugins)
RewriteRule ^(.*)$ /index.php/$1 [L]

app1 config file
Code:
$config['base_url']    = "http://mysite.com/";
$config['index_page'] = "";

app2 config file
Code:
$config['base_url']    = "http://mysite.com/";
$config['index_page'] = "app2.php";



Would really appreciate any ideas or suggestions on this !

Many thanks

Chris


Messages In This Thread
.htaccess issue on new CI build - by El Forum - 01-07-2010, 06:27 AM
.htaccess issue on new CI build - by El Forum - 01-07-2010, 10:49 AM
.htaccess issue on new CI build - by El Forum - 01-07-2010, 07:40 PM
.htaccess issue on new CI build - by El Forum - 01-08-2010, 02:04 AM
.htaccess issue on new CI build - by El Forum - 01-08-2010, 04:48 AM
.htaccess issue on new CI build - by El Forum - 01-11-2010, 11:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB