Welcome Guest, Not a member yet? Register   Sign In
CI 2.2.6 subfolder route 403 error
#1

(This post was last modified: 01-10-2016, 08:37 PM by cvetan.)

I have the subfolder admin in controllers folder so it looks like this.

controllers
   admin
       sessions
       pages

etc...

The problem is this i want when i enter only admin in url it goes to sessions controller. And i have set this route
$route['admin'] = 'admin/sessions/login';

But when i try to access site_url/admin i get 403 forbidden error. Am i doing something wrong?  Huh

UPDATE
I think i figure out what the problem is.

I have folder in public part that is called admin. And it tries to display content of that folder, instead of calling the controller route.

The whole folder structure is like this:
application/controllers/admin/...
system/
public/index.php
public/admin/csss|js|fonts...

I know that this kind of setup worked for me before, or maybe something similar. What am i doing wrong now? Huh
"Well, if crime fighters fight crime and fire fighters fight fire, what do freedom fighters fight?"
Reply


Messages In This Thread
CI 2.2.6 subfolder route 403 error - by cvetan - 01-10-2016, 06:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB