Forcing the domain to serve securely using HTTPS (for any site)

Goto Public directory to paste this code inside .htaccess

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
  • htacess, SSL, Share Hosting
  • 2 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

Accessing your Reseller Hosting Panel

Accessing your Reseller Hosting Panel is super easy and there are multiple ways to get there....