• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Apps - hide index.php

#1
[eluser]nell789[/eluser]
I know there are many threads on this topic, but none of them have been able to help me.


My directory structure is as follows

/main/
/admin/
/system/
main.php
admin.php


The main.php $application_folder = 'main';
The admin.php $application_folder = 'admin';


Both the /main and /admin config.php files contain the following settings:

$config['uri_protocol'] = 'REQUEST_URI';
$config['base_url'] = 'http://example.com';


My .htaccess file is

Code:
RewriteCond $1 !^(main\.php|admin\.php|images|css|robots\.txt)
RewriteRule ^(.*)$ ./main.php/$1 [L]


This allows me to access the /main app the following ways:
http://example.com/main.php/controller/fucntion
http://example.com/controller/function

But it only lets me access the /admin app one way:
http://example.com/admin.php/controller/function


What do I need to change to access the /admin app like this?
http://example.com/admin/controller/function

#2
[eluser]nell789[/eluser]
Can anybody help me please?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.