HostKarle Support

How to redirect http to https using htaccess

(Last Updated On: March 16, 2018)

Redirect http to https using htaccess

Redirect http to https using htaccess if you want to secure your website you must have to install SSL certificate

You may also like: How to Install SSL Certificate

Follow below step to redirect your website to https :-

Step1. Login to Cpanel

 

Step2. Go to Public_html Folder

 

Step3. Create .htaccess File

 

Step4. Edit htaccess File

 

Step5. Enter Below Code in .htaccess file and save

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

if you already have .htaccess file in your cpanel do not duplicate.RewriteEngine On

admin

Share
Published by
admin

Recent Posts

How to Create Your Own Cryptocurrency | Step-by-Step Guide

How to Create Your Own Cryptocurrency Step By Step  What is Cryptocurrency? Cryptocurrency is basically…

3 years ago

Diwali Web Hosting Offer Up to 80% Discount 2021

Web Hosting Diwali Offer HostKarle Coupon Code 2021   Hostkarle provides cheap web hosting services…

3 years ago

How to fix file type is not permitted Unexpected response from the server WordPress Error

Some files not permitted by wordpress to upload When we upload that files wordpress showing…

4 years ago

How to Enable or Setup Cron Jobs in cPanel Step By Step

In this tutorial, you will learn how to set up or enable Cron jobs in…

4 years ago

Hostkarle Promo Code, Hostkarle Coupon Code May 2020

  Hostkarle provides cheap web hosting service in India also have rated no.1 web hosting…

4 years ago

How To Secure WordPress site Without Using Plugin [ WordPress Security Tips 2020 ]

Best Trick To Secure Wordpress Site From Hackers   You can try our trick to…

4 years ago

This website uses cookies.