File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
docs/workloads/application/how-to Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,13 @@ The `redirects` field specifies URL redirects. It is structured as a mapping fro
1111
1212A successful redirect will return a ` 302 Moved Temporarily ` HTTP status code with location header set to the target URL.
1313
14+ !!! info "Explicit redirect permission"
15+ The ingress being redirected has to have ` nais.io/allow-redirect: true ` set.
16+ This can be set as an annotation in the application spec.
17+
18+
1419??? note "Status code for redirects"
15- The status code can not be overridden.
20+ The status code can not be overridden.
1621
1722### Structure
1823
5257
5358In this example :
5459
55- - Requests to `http://example-old.nais.io` are redirected to `http://example-new.nais.io`.
60+ - Requests to `http://example-old.nais.io` are redirected to `http://example-new.nais.io`.
You can’t perform that action at this time.
0 commit comments