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.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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.