src/Routing/RouteFacade.php
/**
	 * Registers a new redirection route with the router, which applies to all methods. The $to parameter can
	 * contain an absolute or relative link, or another route, including its object, name, or URI (with variables filled).
	 * The default redirection code is 302 and can be overridden with the third argument.
	 *
	 * @param string $uri
	 * @param Route|string $to
	 * @param int $code
	 * @param string|null $fallback Path to a php file, relative to the root directory, to use for fallback routing.
	 * @return Route
	 */
Registers a new redirection route with the router, which applies to all methods. The $to parameter can
contain an absolute or relative link, or another route, including its object, name, or URI (with variables filled).
The default redirection code is 302 and can be overridden with the third argument.

@param string $uri
@param Route|string $to
@param int $code
@param string|null $fallback Path to a php file, relative to the root directory, to use for fallback routing.
@return Route
Registers a new redirection route with the router which applies to all methods . The $to parameter can contain an absolute or relative link or another route including its object name or URI ( with variables filled ) . The default redirection code is 302 and can be overridden with the third argument . @param string $uri @param Route|string $to @param int $code @param string|null $fallback Path to a php file relative to the root directory to use for fallback routing . @return Route
public static function redirect($uri, $to, $code = 302, $fallback = null) {
		$route = static::router()->createRedirectRoute($uri, $to, $code);
		if (!is_null($fallback)) {
			$route->fallback($fallback);
		}
		return $route;
	}
public static function redirect ( $ uri , $ to , $ code = 302 , $ fallback = null ) { $ route = static :: router ( ) -> createRedirectRoute ( $ uri , $ to , $ code ) ; if ( ! is_null ( $ fallback ) ) { $ route -> fallback ( $ fallback ) ; } return $ route ; }
Registers a new redirection route with the router, which applies to all methods.
Registers a new redirection route with the router which applies to all methods .