0
I have many controllers in my project, with this I divide the controllers into folders, website in the site folder, admin in the admin folder (within controllers).
But I can’t access the controllers without having to put the folder base in the URL, example:
I want to access it like this: http://localhost/gabriel/projeto/sobre
But that’s the only way I can do it: http://localhost/gabriel/projeto/site/sobre
File 'Routes' is like this:
$route['default_controller'] = "site/index/site";
$route['404_override'] = '';
$route['admin'] = "admin/login";
I’ve tried to modify the htaccess
but I didn’t get any results.
I put one more line in the file 'Routes':
$route['(:any)'] = "site/$1";
But by placing this line it conflicts with the Admin route and can receive only one parameter in the URL.
How can I solve this problem?
Thank you very much solved my problem. I was just trying with (:any), not with the *
– user3092202
@user3092202 If this answer solved your problem, Voce can mark it as certain.
– Renato Dinhani