Welcome Guest, Not a member yet? Register   Sign In
Completely remove controller and function name form URL
#1

[eluser]albertleao[/eluser]
Hello everyone. First time posting, I absolutely love codeigniter! Smile

Anyways I had a question.

I currently have a website with a login screen which then redirects to an authenticated user homepage.

So I have a function in my login screen controller that redirects to the authenticated user homepage if he is already logged in. What I want is for the URL to continue being the same. Is there anyway I can do this?

For example:

Login page: www.mywebsite.com/landing

Routes:
$route['default_controller'] = "landing";
$route['landing'] = '/';

Url displayed: www.mywebsite.com
_________________________

Authenticated user page: www.mywebsite.com/home

Url I want to display: www.mywebsite.com


Is this possible?


Messages In This Thread
Completely remove controller and function name form URL - by El Forum - 02-13-2013, 07:48 PM
Completely remove controller and function name form URL - by El Forum - 02-13-2013, 08:33 PM
Completely remove controller and function name form URL - by El Forum - 02-13-2013, 08:36 PM
Completely remove controller and function name form URL - by El Forum - 02-13-2013, 08:43 PM
Completely remove controller and function name form URL - by El Forum - 02-13-2013, 08:47 PM
Completely remove controller and function name form URL - by El Forum - 02-14-2013, 10:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB