Return to Home Page


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5




[-]
Advertisements

How to redirect website to http:// to https:// protocol
#1

How to redirect website to http:// to https:// protocol

When a website run without SSL certificate website work witih http protocol. But If you buy SSL certificate for your website you can run you webiste with https protocol. Then you need to redirect your http website to https website using .htaccess file. This is very important things to do when you add SSL certificate to your website after some time.

Why we need SSL certificate and https to our website.

SSL and https is very important for website SEO ranking. If website has SSL certificate that mead website has good security for website visitors and users. So If you didn't buy SSL certificate to you website later you can buy and add it to your website very easily. After adding SSL to your website you need to redirect your website from http to http. 

How to redirect website http to https?

Simple add below code to your .htaccess file which in your root directory of web hosting account. That's all.


Code:
Code:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Reply





Forum Jump:


Users browsing this thread: 1 Guest(s)