Web hosting · Practical guide

Set up HTTPS and check the whole website

Check certificate coverage, redirects and mixed content after enabling HTTPS.

Archive placement: May 2022

A close view of a laptop screen

Installing a certificate is one part of HTTPS. The domain must reach the correct server, the certificate must cover the names customers use, and the page must stop loading insecure resources. Follow the path for cPanel hosting or your own web server, then test redirects, application settings and renewal.

1. Cover the names visitors use

List the hostnames the site serves, including the bare domain and www address if both are used. The certificate must cover each relevant name before it can serve a trusted HTTPS response. Confirm which service terminates TLS if you use a proxy or CDN.

On cPanel hosting, start with the supplied SSL tools and any certificate arrangement included with the plan. A self-managed VPS needs the certificate installed in its web server or proxy. Keep private keys private; a support ticket is not the place to paste one.

2. Review the certificate in cPanel

The certificate must cover the names visitors actually use. Start with the cPanel SSL tool for the account that hosts the website.

  1. Open Security → SSL/TLS Certificates on newer cPanel versions, or SSL/TLS Status on older interfaces. Locate the domain and www names you intend to serve.
  2. Check the certificate status, issuer, covered names and expiry. If AutoSSL is available, use the offered check/run action and review its result.
  3. For a purchased certificate, complete its validation and use the certificate installation tool or support-assisted process for the correct website. Keep its private key private.

cPanel features and available AutoSSL actions depend on the account. Do not install a certificate for another domain or treat a subscription invoice as proof that the current certificate is valid.

3. Test HTTPS directly before forcing a redirect

Confirm the secure address works first. Otherwise a redirect can send every visitor straight to a certificate warning.

  1. Open the intended https:// address in a private browser window and check the browser’s connection/certificate information.
  2. Verify the certificate covers that hostname, is within its validity period and is issued for the expected site.
  3. Repeat for www if you use it, and open a second page and an image rather than checking only the homepage.

Do not bypass a certificate warning as a testing shortcut. Check that DNS sends the hostname to the correct account and that the certificate was installed on the server actually answering visitors.

4. Set the application address before final redirect checks

Keep the application URL, hosting redirect and any CDN HTTPS mode consistent. More redirect rules can make a small mismatch harder to diagnose.

  1. Review the website address in the application dashboard. In a normal WordPress installation, check WordPress Address and Site Address under Settings → General.
  2. Use the intended HTTPS hostname consistently, including the www choice. Confirm you can still sign in after saving a change.
  3. If a CDN sits in front of the website, review its documented HTTPS mode and make sure the origin connection and application settings match the supported setup.

Keep the old settings recorded so a failed change can be reversed. If changing a WordPress URL locks you out, ask support or follow the application’s documented recovery process rather than adding unrelated redirect rules.

5. Enable the redirect using the supported website control

Once HTTPS works, choose one documented redirect method so the application, hosting account and CDN do not fight each other.

  1. Check the application’s public URL setting. In WordPress, review Settings → General for the intended HTTPS addresses.
  2. If cPanel → Domains offers Force HTTPS Redirect for the domain, enable it after confirming the certificate. Otherwise follow the application or hosting guidance.
  3. Open an http:// address in a private window and confirm it reaches the correct https:// page. Check www and a deeper URL too.

If you get a redirect loop, review the last change and any CDN HTTPS mode before adding more redirect rules. Keep the previous setting recorded so you can reverse it.

6. Find mixed content in the browser

An HTTPS page can still request an image, script or stylesheet over HTTP. The browser may warn or block that request.

  1. Open developer tools and check Console and Network for mixed-content messages and blocked asset URLs.
  2. Update the affected link through the application settings, page editor, theme or plugin that generated it. Prefer the correct HTTPS resource when the remote service supports it.
  3. Clear the relevant caches and test while logged out. Check forms, sign-in and any checkout using the application’s test mode.

Do not turn off browser security or replace text across a WordPress database blindly. Use an application-aware migration tool for stored URL changes, especially where serialized settings are involved.

7. Keep renewal in the plan

Check how the certificate renews and which person or service receives renewal failures. Test the website after a certificate change, including forms and logins. Keep monitoring outside the server so it checks what visitors actually receive.

HTTPS protects the connection; it does not replace application updates, strong access controls or backups. Consider HSTS only after the HTTPS setup is reliable and you understand its effect on subdomains and recovery.

8. Finish with the customer path and renewal plan

Treat the change as complete only when the website’s important tasks work through the public HTTPS address.

  1. Test the homepage, a deeper link, uploaded media, sign-in and a form. Use a test account and test payment mode for commercial workflows.
  2. Confirm that HTTP and any alternate hostname lead to the intended HTTPS address without a loop or certificate warning.
  3. Record whether cPanel AutoSSL or a purchased-certificate service handles renewal, who receives notices and when the currently served certificate expires.

Keep a recovery copy of changed settings and consider an external expiry alert. Delay strict HSTS settings until all required hostnames reliably support HTTPS; it is not a substitute for a valid certificate or a working redirect.

Common questions

Does a paid SSL certificate remove the need for application security?

No. HTTPS protects traffic and authenticates the hostname. It does not patch the application, prevent stolen credentials or repair a compromised website.

Can I test with curl -k when the certificate fails?

That option bypasses verification and can hide the real issue. Use a normal verified request as the success test, and correct the hostname, chain, clock or certificate installation.

Further reading

← Back to all guidesDiscuss your hosting setup ↗