From the course: SSL Certificates for Web Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Redirect requests to HTTPS

Redirect requests to HTTPS - SSL Tutorial

From the course: SSL Certificates for Web Developers

Start my 1-month free trial

Redirect requests to HTTPS

- [Instructor] In the last couple of chapters, we talked about how to install an SSL certificate so that it's there and up and running. Now we need to talk about how we make a few more configurations to really get HTTPS in the state that we want it and the first and most important thing is we wanna redirect requests that come in over HTTP, that is insecure requests, we wanna redirect those to HTTPS. By default when you type a URL in your browser and you type http:// that's gonna send that request to port 80. That's the standard web port that most web browsers use and we saw that when we were looking at the configuration files in the last chapter that the configuration was listening on port 80. You may have noticed that when we implemented SSL, we did it on port 443. That's the default for these secure requests. It keeps them separate. So insecure requests come in on port 80, secure requests come in on port 443. So if you type https, it's gonna send that request to port 443. What we…

Contents