How to Change http to https (100% WORKS!)

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



4. Upload our new .htaccess file to Cpanel

5. Refresh our website and it works


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!!!











Share:

No comments:

Post a Comment

Ads

Labels

Contact Form

Name

Email *

Message *

Translate

Total Pageviews

Recent Posts

Featured Post

How To Become Rich From Nothing

Is it possible to get rich starting from nothing  ?   Of course you can.  You don't have to be born into a rich family to be rich. You d...

Followers