Why SSL Certificates are Mandatory for Modern SEO
Search engines like Google prioritize secure sites (HTTPS). Let's Encrypt provides automated, domain-validated SSL certificates at zero cost. By encrypting data in transit, SSL protects user login inputs and credit card structures from packet sniffing attacks on shared networks.
Apache htaccess Rewrite Code for Secure Redirects
Once your SSL is active, force HTTPS redirects by editing your .htaccess file. Place this block at the top of the file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Step-by-Step Instructions
Locate SSL/TLS Status in cPanel
Log in to cPanel, scroll to the Security section, and select SSL/TLS Status.
Select Domains for Issuance
Check the checkboxes next to the domains you wish to secure (e.g., yourdomain.com and www.yourdomain.com).
Run AutoSSL Process
Click the "Run AutoSSL" button. The server will contact Let's Encrypt, complete the HTTP-01 challenge, and provision the certificate.
Install Certbot on Linux (Alternative)
If using a raw cloud server, connect via SSH and install Certbot: "sudo apt install certbot python3-certbot-nginx".
Configure Auto-Renewal
Let's Encrypt certificates expire in 90 days. Set up a Linux cron job running "certbot renew" twice daily to handle auto-renewals.
Leave a Reply
Your email address will not be published. Required fields are marked *