problem with redirect |
[eluser]niranjnn01[/eluser]
Hello guys, I want to redirect the admin user to mysite.com/foldername/admin/main (here main is the controller) and normal users to mysite.com/foldername/main (here main is the controller) i was able to redirect to mysite.com/admin/main , from a controller -> mysite.com/login/ but when i try to redirect admin user to mysite.com/foldername/admin/main , its not working. I am getting the 404- page not found message. it seems CI is interpreting the 'foldername' as a controller and 'admin' as its function here?. we are not able to redirect to inner folders?.. please let me know what can be done to redirect to this inner folder Thank you, Rakesh
[eluser]Yoosuf Muhammad[/eluser]
use routing refer following link http://stackoverflow.com/questions/12882...er-routing regards, Yoosuf |
Welcome Guest, Not a member yet? Register Sign In |