Missed the action at this year's Chrome Dev Summit? Catch up with our playlist on YouTube. Watch now.

Redirects HTTP Traffic To HTTPS

Why the audit is important

All sites should be protected with HTTPS. See the following Lighthouse doc to learn why: Site is on HTTPS.

Once you've got HTTPS set up, you need to make sure that all unsecure HTTP traffic to your site is redirected to HTTPS.

How to pass the audit

  1. Use canonical links in the head of your HTML to help search engines figure out the best way to get to the page.

  2. Configure your server to redirect HTTP traffic to HTTPS. See your server's documentation to figure out the best way to do this.

How the audit is implemented

This section explains how this audit is implemented, so that you can understand how the audit's score is calculated.

Lighthouse changes the page's URL to http, loads the page, and then waits for the event from the Chrome Debugger that indicates that the page is secure. If Lighthouse does not receive the event within 10 seconds then the audit fails.