A _redirects.yaml file lets you manage redirects. A redirect causes the user's browser to go to a different URL when a given URL is requested. You can use redirects for content that has moved or has been deleted.Redirects only work if you also remove the file at the origin URL. The _redirects.yaml file contains a redirects top-level element. Its value is a list of redirect definitions. Each redirect has a from field and a to field. The _redirects.yaml file uses the YAML file format. To manage redirects for changes to top-level directories of a site, you can add them to the _redirects.yaml file at the site content root. For example, //depot/google3/googledata/devsite/content/en/_redirects.yaml contains redirects for top-level directories on developers.google.com.
Every object in a _redirects.yaml file supports the include field, which lets you replace the object with the contents of another YAML file at build time. The contents of the included file must match the type that would normally be found in the object.