Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: Security

Force secure redirects—a HTTPS tweak—on an Apache VPS—edit /etc/httpd/conf/httpd conf:
RewriteEngine On\nRewriteCond %{HTTPS} off\nRewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
restart:
systemctl restart httpd
On Hetzner secures hosting—enforces HTTPS

Back to All Tips