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

(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.



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

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:

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?"

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