system/Router/RouteCollection.php
public function addRedirect(string $from, string $to, int $status = 302)
	{
		// Use the named route's pattern if this is a named route.
		if (array_key_exists($to, $this->routes['*']))
		{
			$to = $this->routes['*'][$to]['route'];
		}

		$this->create('*', $from, $to, ['redirect' => $status]);

		return $this;
	}
public function addRedirect(string $from, string $to, int $status = 302)
	{
		// Use the named route's pattern if this is a named route.
		if (array_key_exists($to, $this->routes['*']))
		{
			$to = $this->routes['*'][$to]['route'];
		}

		$this->create('*', $from, $to, ['redirect' => $status]);

		return $this;
	}
Adds a temporary redirect from one route to another. Used for
redirecting traffic from old, non-existing routes to the new
moved routes.

@param string  $from   The pattern to match against
@param string  $to     Either a route name or a URI to redirect to
@param integer $status The HTTP status code that should be returned with this redirect

@return RouteCollection