Welcome Guest, Not a member yet? Register   Sign In
can't access subdir after changing htaccess
#1

[eluser]hcvitto[/eluser]
Hi
i'm working the first time with CI so i need a bit of support to get me goingSmile
I got an app which works fine with the htaccess file but i can't get to the Admin subdir.
This is the structure of my app in the application folder:

CONTROLLERS
--main.php (contains all of the functions)
--admin (dir)
--admin.php (calls the views/admnin/login.php)


VIEWS
--view files
--admin (dir)
--login.php

and here's my htaccess in the application root

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /app_labitta/ (name of the application)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/main/$1 [L]
</IfModule>

I tried this but with no avail!
RewriteRule ^(.*)$ index.php/main/$1 [L]
RewriteRule ^(.*)/admin/$ index.php/admin/main/$1 [L]


How can i get to see the admin area?
Is it possible to use more rewrite rules and/or more rewrite Base?
Any idea or error spot?
Thanks Vitto


Messages In This Thread
can't access subdir after changing htaccess - by El Forum - 10-28-2008, 03:46 AM
can't access subdir after changing htaccess - by El Forum - 10-28-2008, 07:29 AM
can't access subdir after changing htaccess - by El Forum - 10-28-2008, 10:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB