How do I change the status code of http redirection to https from 308 to 301? #1286
-
SummaryI deploy our Nextjs project to Vercel, can I change the status code from 308 to 301 ? Thanks!!! Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
A 308 is generally preferred since the exact same request will be performed for the new location versus a 301 request in which the request could be altered. Can you tell us more about why you want to use a 301 instead of a 308 for HTTP to HTTPS redirects? Maybe there is already a solution available that will work for your situation. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
We are having the same issue |
Beta Was this translation helpful? Give feedback.



A 308 is generally preferred since the exact same request will be performed for the new location versus a 301 request in which the request could be altered.
Can you tell us more about why you want to use a 301 instead of a 308 for HTTP to HTTPS redirects? Maybe there is already a solution available that will work for your situation.