Welcome to my blog, this time I want to share info about "How to change HTTP to HTTPS" on my website. the advantage of converting HTTP to HTTPS is to communicate between the browser and the webserver.
How to Redirect HTTP to HTTPS The steps to redirect HTTP to HTTPS are as follows:
1. Enter the cPanel dashboard, click File Manager in the Files section.
2. Select public_html, then right-click on .htaccess and click “Edit”, then when a popup appears, select “Edit”.
3. Copy the following script, then replace all the scripts in the .htaccess file with the new ones:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Notes :
If the error cannot be saved changes then create a manual .htaccess first by:
1. Create a .txt file then fill in the script
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Save .txt file
2. Rename the .txt format with the name .htaccess
3. Go to your Cpanel then .htaccess which we previously renamed for example with the name .htaccess_http
Well, I think enough of this blog that I wrote this time. Previously the admin had practiced and succeeded. Please friends can try as well.
Good Luck!!!
















