How to Force HTTPS Securely Using .htaccess

Veröffentlicht am: 16 Juni 2021
auf dem Kanal: Sultan Kautsar
171
1

Hypertext Transfer Protocol Secure (https) is a combination of the Hypertext Transfer Protocol (HTTP) with the Secure Socket Layer (SSL)/Transport Layer Security (TLS) protocol. TLS is an authentication and security protocol widely implemented in browsers and Web servers.

How to force HTTPS on your website using a (.htaccess) file?
Copy and paste this code into your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Chapters:
0:00 Trying to use url without http/https
0:23 Create .htaccess file to force HTTPS
0:37 Attaching code to force HTTPS
0:57 Trying to reload the site

Music:
"Sappheiros - Dawn" is under a Creative Commons license (CC BY 3.0)
Music promoted by BreakingCopyright:    • 🛀 Calm Music (No Copyright)  "Dawn" by @Sa...  

Thanks For Watching!


Auf dieser Seite können Sie das Online-Video How to Force HTTPS Securely Using .htaccess mit der Dauer online in guter Qualität ansehen, das der Benutzer Sultan Kautsar 16 Juni 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 171 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!