Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

301 is a permanent redirect for http.

Is there a similar code for https? I googled and found nothing. I am looking at the best way to make an NGINX redirect.

I have a solution in place, but I am trying to see if there is a better method.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

The protocol is exactly the same between HTTP and HTTPS: HTTPS is HTTP encapsulated within SSL. All the request and response codes remain the same.

See Nginx redirect a particular page from https to http and use the inverse of my answer there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.