CodeIgniter Forums
re_write for multiple apps problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: re_write for multiple apps problem (/thread-34242.html)



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]