HTTP 308 · 3XX RFC 9110 §15.4.9 Cacheable: Yes (by default) Retryable: Follow Location with same method

HTTP 308 Permanent Redirect: Root Causes & Production Fix Guide

HTTP 308 Permanent Redirect is the strict counterpart to 301: it signals a permanent move while forbidding clients from changing POST/PUT/DELETE into GET.

Top Root Causes of HTTP 308

Nginx Permanent API Migration with 308

location ^~ /v1/events {
    return 308 https://api.example.com/v2/events$is_args$args;
}

Verify with cURL

curl -i -sS -X POST -H 'Content-Type: application/json' -d '{}' https://api.example.com/v1/events

Interactive Stack Diagnoser (HTTP 308)

Frequently Asked Questions

Does Googlebot treat 308 the same as 301 for SEO?

Yes. Google Search treats 308 Permanent Redirect identically to 301 for canonicalization and link equity transfer.

Why does Kubernetes ingress-nginx return 308 instead of 301?

ingress-nginx defaults to 308 for HTTPS redirects so API POST requests are not silently downgraded to GET. You can override it via `nginx.ingress.kubernetes.io/permanent-redirect-code`.

Do all modern browsers support 308?

Yes, all modern browsers, curl, Node fetch, and HTTP libraries fully support RFC 9110 308 redirects.

Related Status Guides & Header Tools