The most common problem after the SSL Certificate installed. When you access to website by www.yourdomain.com or yourdomain.com (without typing https://) on the web browser's address Bar does not show the Padlock (green key) This is because of a typical web browser will call a web page via a standard protocol http // (Port 80). It is therefore necessary to set the Redirecct to force the web browser to fetch web pages via Protocol https:// (Port 443) instead. Use the configuration method in the file .htaccess (For Web Server Apache or Nginx) or put the script in the PHP file.
Redirecct with .htaccesse (Linux) Create a blank text file with a text editor such as Notepad and save as htaccess.txt. Then copy 5 lines command below and plaste into the htaccess.txt file, Upload the htaccess.txt file to folder /public_html. Then rename the file to .htaccess.
Warning: If you have file .htaccess already, Edit the old file and copying the below command from <IfModule mod_rewrite.c> to </IfModule> Then paste in .htaccess file.
Redirecct with PHP Script Open a .php file with a Text Editor such as Notepad. Copy the command below. Placed at the top of the file. ( Place after command <? php ) This may not be convenient because you may must edit all .php files, but it is best for set redirect only for specific pages like index.php.
Redirecct with web.config (Windows & Plesk) Create a blank text file with a text editor such as Notepad and save as web.config.txt. Then copy 5 lines command below and plaste into the web.config.txt file, Upload the web.config.txt to folder /httpdocs. Then rename the file to web.config
Warning: If you have file web.config already, Edit the old file and copying the below command from <system.webServer> to </system.webServer> Then paste in web.config file.