Transport & HTTPS

HTTP to HTTPS redirect

Redirect http:// requests to the same URL on https:// with a 301.

Why it matters

If http:// still serves the page, the first visit can be read or changed before the user reaches the secure version.

A permanent redirect keeps old links working and tells search engines which URL is canonical.

How to fix it

  1. Request http:// and confirm a 301 to https://

  2. Keep the path and query string in the redirect

  3. Serve a valid certificate for the host

Prompt for an AI assistant

Copy the text below and paste it into an AI assistant.

You are the person improving this website. Check the item below and fix it if it applies to the site.

Item: HTTP to HTTPS redirect
Summary: Redirect http:// requests to the same URL on https:// with a 301.
Steps:
1. Request http:// and confirm a 301 to https://
2. Keep the path and query string in the redirect
3. Serve a valid certificate for the host
References:
- Why HTTPS matters (web.dev) (https://web.dev/articles/why-https-matters)
- Strict-Transport-Security (MDN) (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security)

Constraints:
- Keep the existing design and tone of voice.
- Show the file or section you changed and the suggested final wording.
- Do not decide ambiguous points alone; give options and a recommendation.
- Do not change anything outside the listed item.

Checked by

  • vuln

    Public exposure checks

Related checks

  • HTTPS / HSTS

    Serve the site over HTTPS and send Strict-Transport-Security so browsers refuse plain HTTP on later visits.

  • Mixed content

    Load every script, style, image, and frame over https:// on an HTTPS page.

References

Check your site now

Enter a URL and find what is missing before launch, for free.

Run audit