HTTP 308 Permanent Redirect — Method Preserved
About HTTP 308 Permanent Redirect
HTTP 308 Permanent Redirect is like 301 but guarantees the request method is preserved. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.
Here are the key things to understand: Status: 308 Permanent Redirect. Category: 3xx Redirection. Same as 301 but method MUST be preserved. Used for permanent API endpoint moves. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.
The most common reasons this occurs include: Permanent redirect preserving POST method. API versioning — old endpoint permanently moved. Domain migration for APIs. URL restructuring for non-GET endpoints. Identifying the root cause is the first step toward finding the right solution.
To resolve this, follow these recommended steps: Update all references to use the new URL. Follow the redirect with the same method. Cache the new location for future requests. Use 301 for standard page redirects. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.
This article is part of our HTTP Status Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.
Quick Answer
308 vs 301?
308 preserves the HTTP method. 301 may change POST to GET.
Overview
HTTP 308 Permanent Redirect is like 301 but guarantees the request method is preserved.
Key Details
- Status: 308 Permanent Redirect
- Category: 3xx Redirection
- Same as 301 but method MUST be preserved
- Used for permanent API endpoint moves
Common Causes
- Permanent redirect preserving POST method
- API versioning — old endpoint permanently moved
- Domain migration for APIs
- URL restructuring for non-GET endpoints
Steps
- 1Update all references to use the new URL
- 2Follow the redirect with the same method
- 3Cache the new location for future requests
- 4Use 301 for standard page redirects