• Go To Website
  • Go To Website
home/Knowledge Base/Security/SSL/Force SSL with .htaccess
Popular Search:Reseller Hosting, VPS Hosting, Professional Mail

Force SSL with .htaccess

Updated on April 11, 2022

The padlock icon in your browser indicates that your site has an SSL certificate, which encrypts communications between visitors and the server. Because Google now displays a warning in the browser for sites without SSL certificates, it is more crucial than ever to have an SSL certificate on your site.

All Listed Hosting-hosted sites/domains are automatically enrolled in the Auto SSL system, which is available free of charge with all our hosting services. This implies that as long as the domain links to us (through nameservers or A records), the system will automatically obtain and install an SSL certificate for the domain if it does not already have one. This procedure is transparent and does not necessitate your involvement. In most cases, the SSL certificate is requested and installed within 4 hours after pointing the nameservers; however, if it takes longer than this or if your SSL certificate is not working, please let us know.

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This will redirect all http:// queries to https://, however you should only do this when your SSL is configured and operational. If you’re using a CMS like WordPress, make sure to add the https:// in the Site URL and Homepage fields in the wp-admin section. This is necessary in order for pictures, stylesheets, and other files to be loaded via https://.

Was this helpful?

Yes  No
Related Articles
  • What is an SSL Certificate?
  • What brand of SSL do you offer?
  • Web servers
  • How to Run SQL Queries in phpMyAdmin
  • How to install FREE SSL on cPanel
  • How to Enable an SSL Certificate
Leave A Comment Cancel reply

SSL
  • Force SSL with .htaccess
  • What is an SSL Certificate?
  • What brand of SSL do you offer?
  • Web servers
  • How to Run SQL Queries in phpMyAdmin
  • How to install FREE SSL on cPanel
View All 9  
Popular Articles
  • How to Install WordPress Online Using Softaculous App Installer
  • How do I set up my domain’s personal Nameservers?
  • How do I use a browser to dynamically update the host’s IP?
  • What does “Awaiting release from previous registrar” transfer status mean?
  • How to Preview Your Website on Our Servers
Categories
  • Nameservers
  • cPanel
    • Softaculous
  • Professional Business Mail
  • Backup
  • General
  • Domain
    • Transfer
  • SSD Hosting
  • Cloud VPS
  • Migration
  • Resellers
  • Security
    • SSL
  • Databases
  • Affliates
  • WordPress
  • Billings & Payments
  • Email
  • Files & Access
  • PHP

  Generating a CSR using cPanel

  • © 2022. Listed Hosting. All Rights Reserved.

Popular Search:Reseller Hosting, VPS Hosting, Professional Mail