CodeIgniter Forums
re_write for multiple apps problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: re_write for multiple apps problem (/showthread.php?tid=34242)



re_write for multiple apps problem - El Forum - 09-23-2010

[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.


re_write for multiple apps problem - El Forum - 09-23-2010

[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]