CodeIgniter Forums

Full Version: re_write for multiple apps problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]SlasHo[/eluser]
two apps i'm trying to get rid of the application_name.php/blah

my directory is like this

/site/system/application/admin
/site/system/application/front

/site/admin.php
/site/fron.php
/site/.htaccess


.htaccess
RewriteEngine on
RewriteCond $1 !^(front\.php|images|robots\.txt)
RewriteRule ^(.*)$ front.php/$1 [L]

this works only with

http://www.mydomain.com/front/blah



but I need to get to work
http://www.mydomain.com/admin/blah



ANY help?? I already read the manuals on this page and wikis, but nothing seems to solve my problem.


thanks in advance.

El Forum

[eluser]SlasHo[/eluser]
I fixed with this... hope works for you.

RewriteRule ^(front)/(.*)$ ./front.php/$1/$2 [L]
RewriteRule ^(admin)/(.*)$ ./admin.php/$1/$2 [L]