1. Websta Hosting
E-Commerce & Online Stores

Setting Up SSL for WooCommerce / E-Commerce

Setting Up SSL for WooCommerce / E-Commerce

SSL (HTTPS) is mandatory for any website that takes payments. Browsers show a warning for checkout pages without SSL, and most payment processors require it.

Install SSL via DirectAdmin

  1. Log in to DirectAdmin → SSL Certificates → select your domain.
  2. Click Free & automatic certificate from Let's Encrypt.
  3. Tick your domain and www subdomain.
  4. Click Save.

Force HTTPS in WordPress

After installing SSL:

  1. WordPress Admin → Settings → General — change both URLs to https://.

  2. Add to public_html/.htaccess:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  1. If you use Cloudflare, set SSL mode to Full (Strict).

Fix Mixed Content Warnings

After switching to HTTPS, some images or scripts may still load over HTTP ("mixed content"). Fix with:

  • Better Search Replace plugin (WordPress) — replace http://yourdomain.com with https://yourdomain.com in the database.
  • Or run via WP-CLI:
wp search-replace 'http://yourdomain.com' 'https://yourdomain.com' --all-tables

Verify SSL

Check your certificate at sslchecker.com or SSL Labs.

A grade of A or A+ is ideal.

Still need help?

If this article didn't answer your question, our support team can help.

Contact support
All articles More in E-Commerce & Online Stores