CodeIgniter Forums

Full Version: problem with redirect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

[eluser]Yoosuf Muhammad[/eluser]
use routing

refer following link

http://stackoverflow.com/questions/12882...er-routing

regards,
Yoosuf