Simple HTTPS redirect using .htaccess (WEB)

PROBLEMI have SSL certificate installed, but web is still on http instead of https.
SOLUTIONPut simple code to your .htaccess file.

[?] How secure is HTTPS today?
https://www.eff.org/deeplinks/2011/10/how-secure-https-today

//Put this code into your .htaccess file

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.filipniko.cz/$1 [R,L]

Credit: https://serverguy.com/servers/redirect-http-to-https/

Leave a Reply

Your email address will not be published. Required fields are marked *