Welcome Guest, Not a member yet? Register   Sign In
.htaccess for multiple applications?
#10

[eluser]dianikol85[/eluser]
Hi there. I guess you want to have a front end and a backend area.

the way i did it is the following:

1) Use
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
to remove the index.php from all URLs

2) I create two folders under controller,model,views, and i call them admin, frontend

3) In the routes.php add this line
Code:
$route['admin'] = 'admin/your_controller';


so when you type int the browser http://www.yoursite.com/admin it will redirects you in to the 'your_controller' controller which is under controller/admin/your_controller.php

I hope this is what you were looking for


Messages In This Thread
.htaccess for multiple applications? - by El Forum - 02-11-2011, 09:31 AM
.htaccess for multiple applications? - by El Forum - 02-11-2011, 02:38 PM
.htaccess for multiple applications? - by El Forum - 02-13-2011, 09:19 AM
.htaccess for multiple applications? - by El Forum - 02-14-2011, 01:14 PM
.htaccess for multiple applications? - by El Forum - 02-15-2011, 03:16 AM
.htaccess for multiple applications? - by El Forum - 02-17-2011, 01:45 AM
.htaccess for multiple applications? - by El Forum - 02-17-2011, 02:04 AM
.htaccess for multiple applications? - by El Forum - 02-17-2011, 07:55 AM
.htaccess for multiple applications? - by El Forum - 02-28-2011, 09:25 AM
.htaccess for multiple applications? - by El Forum - 02-28-2011, 09:51 AM
.htaccess for multiple applications? - by El Forum - 02-28-2011, 06:37 PM
.htaccess for multiple applications? - by El Forum - 03-03-2011, 03:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB