After your SSL certificate is installed, you should redirect all visitors from http:// to https:// so the site always loads securely.
Method 1: WordPress (Recommended for WordPress sites)
- Log in to your WordPress admin.
- Go to Settings → General.
- Change both fields to use https://:
- WordPress Address (URL)
- Site Address (URL)
- Click Save Changes.
- Clear your cache (WP Rocket → Clear cache, or your caching plugin).
Method 2: .htaccess Redirect (Works for most sites)
- Log in to cPanel → File Manager.
- Go to public_html.
- Enable Show Hidden Files if needed and edit (or create) the .htaccess file.
- Add these lines at the very top:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- Save the file and test your site.
Method 3: cPanel Redirect (Alternative)
- In cPanel go to Domains → Redirects.
- Create a permanent (301) redirect from http://yourwebsite.com to https://yourwebsite.com.
- Repeat for the www version if you use it.
Verify
- Visit http://yourwebsite.com — it should automatically switch to https://.
- Check for the padlock icon.
- Clear browser and site cache if the old version still appears.
Tips
- Always install the SSL certificate first (see How to Install a Free SSL Certificate).
- If you see mixed content warnings after forcing HTTPS, follow the mixed content troubleshooting guide.
- WP Rocket and some security plugins also offer a “Force HTTPS” option.
Related articles
- How to Install a Free SSL Certificate
- How to Fix Mixed Content or “Not Secure” Warnings After Installing SSL
- How to Clear Cache on Your Website
Čeština