Welcome Guest, Not a member yet? Register   Sign In
re_write for multiple apps problem
#1

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

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




Theme © iAndrew 2016 - Forum software by © MyBB