How to Force HTTPS on Your Website Ispis

  • 0

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)

  1. Log in to your WordPress admin.
  2. Go to Settings → General.
  3. Change both fields to use https://:
    • WordPress Address (URL)
    • Site Address (URL)
  4. Click Save Changes.
  5. Clear your cache (WP Rocket → Clear cache, or your caching plugin).

Method 2: .htaccess Redirect (Works for most sites)

  1. Log in to cPanel → File Manager.
  2. Go to public_html.
  3. Enable Show Hidden Files if needed and edit (or create) the .htaccess file.
  4. Add these lines at the very top:

 
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  1. Save the file and test your site.

Method 3: cPanel Redirect (Alternative)

  1. In cPanel go to Domains → Redirects.
  2. Create a permanent (301) redirect from http://yourwebsite.com to https://yourwebsite.com.
  3. 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

Open a Support Ticket


Je li Vam ovaj odgovor pomogao?

« Nazad