Welcome Guest, Not a member yet? Register   Sign In
Route redirection not working in Config?
#1

(This post was last modified: 04-11-2022, 08:27 AM by dazzafact.)

Hi. I use multiple route configurations in Router.php. everything works except for "addRedirect()". Can't I use the "addRedirect()" method in the config file?
It dont works
PHP Code:
....
#$routes->get('/activate_success', 'Jobs::start'); 
$routes->get('/login/logout''Jobs::start'); 
$routes->addRedirect('site/datenschutz''Site::index/privacy');  
.....
$routes->get('/tags/(:segment)$''Jobs::index/tags/$1'); 
Reply
#2

See https://codeigniter4.github.io/userguide...ing-routes
Reply




Theme © iAndrew 2016 - Forum software by © MyBB