Category
- SECURITY
- WORDPRESS
- CPANEL (CONTROL PANEL)
- HOSTING
- DOMAINS
- EMAIL
- APP HOSTING
- BILLING
- WEB DESIGN
- WEB MIGRATION
- SOFTWARE PRODUCTS
- MANAGING YOUR ACCOUNT
- DATA CENTERS AND SERVERS
- SERVICE AGREEMENTS
How to Force HTTPS on Your Website
Once you’ve installed an SSL certificate, your site is ready for secure browsing over HTTPS. But unless you force it, visitors might still land on the insecure HTTP version. Forcing HTTPS ensures all traffic is encrypted — improving security and SEO.
Why Forcing HTTPS Matters
- Ensures all users are protected with SSL encryption
- Prevents duplicate content (SEO boost!)
- Displays the padlock icon in browsers
- Helps maintain trust and privacy
Method 1: Force HTTPS via .htaccess (Recommended for Most)
If you’re using Apache (common on most cPanel hosting environments like Nextel Systems):
Steps:
- Open cPanel
Go toyourdomain.com/cpaneland log in. - Navigate to File Manager
- Open File Manager under the Files section.
- Go to the public_html directory.
- Edit the
.htaccessfile- If it doesn’t exist, create a new one.
- Add the following code at the top:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - Save Changes and refresh your site using
https://yourdomain.com
Method 2: Force HTTPS in cPanel (AutoSSL/Redirect Option)
Some cPanel environments include a Force HTTPS Redirect toggle:
- Go to Domains in cPanel.
- Find your domain in the list.
- Toggle “Force HTTPS Redirect” to ON.
This option automatically creates a redirect without editing
.htaccess.
Method 3: WordPress Users – Force HTTPS in WP Settings
- Log into your WordPress dashboard.
- Go to Settings > General.
- Update both the WordPress Address (URL) and Site Address (URL) to use
https://. - Save changes.
You can also use the Really Simple SSL plugin to automatically detect and enforce HTTPS across the site.
Test the Redirect
Visit http://yourdomain.com — it should automatically redirect to https://yourdomain.com.
Use https://www.whynopadlock.com to test for insecure content.
Created: April 9, 2025
Need Help with Your Domain?
Contact Nextel Systems for expert assistance with securing and managing your domain.