Welcome Guest, Not a member yet? Register   Sign In
Problem with redirect and routes
#7

Thanks for help, i tried your solutions but nothing change.

Maybe we need a recap about my situation.

Automatic routing work, if i try to navigate into xxxx.it/landing or /login or /registration all works fine.

I my controller registration i have a situation similar as to described by wdeda:

Code:
if ($control == '0') {
//header("location: ".base_url()."");
return redirect()->to('landing');
exit;
}

Has you can see actually i'm using header to redirect and it's work fine but i have commented that to try your solutions.
Landing i a test page/controller that i have create.

Routes.php contain this strings that i have insert:
Code:
$routes->add('/registration', 'Registration::index');
$routes->add('/landing', 'Landing::index');

I tried all yours solutions but nothing change, instead of a redirect i obtain only the refresh of the page where i'm.

Thanks for help
Reply


Messages In This Thread
Problem with redirect and routes - by Madsex - 03-26-2021, 10:25 AM
RE: Problem with redirect and routes - by Madsex - 03-27-2021, 04:05 AM
RE: Problem with redirect and routes - by mlurie - 03-27-2021, 07:39 AM
RE: Problem with redirect and routes - by wdeda - 03-27-2021, 09:03 PM
RE: Problem with redirect and routes - by Madsex - 03-28-2021, 04:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB