How to make your website in https version?


It is very important to make a site https secured that visitors trust your site in safety.

 

Follow the tutorial in shortcut.

 

Step-1

Go and open to your site header.php

 

Step-2

Add following php codes in top/first position of your header.php and save it.

<?php
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
    $redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    header("Location: $redirect_url");
    exit();
}
?>

 

Done.

 



Find More related How to make your website in https version?


Have any Question or Comment?

Leave a Reply

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