Knowledge Base / Web Hosting & Servers
Forcing HTTPS on Your Website Using .htaccess Rules in cPanel
Updated 3 December 2026
Ensuring every visitor lands on https:// protects login forms, boosts Google SEO rankings, and prevents mixed-content warnings with your SSL radio player.
Standard .htaccess HTTPS Redirect
Open .htaccess inside public_html via cPanel File Manager and add:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]