HTTP

HTTP 308 Permanent Redirect vs 526 Invalid SSL Certificate

HTTP 308 (Permanent Redirect) is a 3xx Redirection response, while 526 (Invalid SSL Certificate) is a 5xx Server Error response. 308 indicates that the resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed. In contrast, 526 means that cloudflare-specific. The origin's SSL certificate could not be validated.

Description

The resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed.

When You See It

For permanent URL changes where POST requests must remain POST.

How to Fix

Update all references to the new URL. The HTTP method is preserved.

Description

Cloudflare-specific. The origin's SSL certificate could not be validated.

When You See It

When using Cloudflare Full (Strict) mode with an invalid origin certificate.

How to Fix

Install a valid SSL certificate on the origin, or use Cloudflare Origin CA certificate.

Key Differences

1.

308 is a 3xx Redirection response, while 526 is a 5xx Server Error response.

2.

HTTP 308: The resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed.

3.

HTTP 526: Cloudflare-specific. The origin's SSL certificate could not be validated.

4.

You encounter 308 when for permanent URL changes where POST requests must remain POST.

5.

You encounter 526 when when using Cloudflare Full (Strict) mode with an invalid origin certificate.

When to Use Which

For 308 (Permanent Redirect): Update all references to the new URL. The HTTP method is preserved. For 526 (Invalid SSL Certificate): Install a valid SSL certificate on the origin, or use Cloudflare Origin CA certificate.

Learn More