HTTP 301 Moved Permanently vs 526 Invalid SSL Certificate
HTTP 301 (Moved Permanently) is a 3xx Redirection response, while 526 (Invalid SSL Certificate) is a 5xx Server Error response. 301 indicates that the resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL. In contrast, 526 means that cloudflare-specific. The origin's SSL certificate could not be validated.
Description
The resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL.
When You See It
After domain migrations, URL restructuring, or when consolidating duplicate URLs.
How to Fix
Update links and bookmarks to the new URL in the Location header. For SEO, this is the preferred redirect for permanent moves.
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
301 is a 3xx Redirection response, while 526 is a 5xx Server Error response.
HTTP 301: The resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL.
HTTP 526: Cloudflare-specific. The origin's SSL certificate could not be validated.
You encounter 301 when after domain migrations, URL restructuring, or when consolidating duplicate URLs.
You encounter 526 when when using Cloudflare Full (Strict) mode with an invalid origin certificate.
When to Use Which
For 301 (Moved Permanently): Update links and bookmarks to the new URL in the Location header. For SEO, this is the preferred redirect for permanent moves. For 526 (Invalid SSL Certificate): Install a valid SSL certificate on the origin, or use Cloudflare Origin CA certificate.