Menu Close

How to redirect Http to Https Using .htaccess file

You can check our free domain suggestion tool hereĀ  Register .com From $14.8 ; .net $16.49; .org $16.99

we can redirect the non SSL query to your website to SSL port by using .htaccess file.This will help you to access the websites from a secured port(443 of apache) of we server.

in your .htaccess file, you can add following code:


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

It will direct the Normal website URL to its SSL website URL.

How to redirect Http to Https in cpanel

In your Cpanel, go to domain and then redirect link:

Click Redirects link, and then you will go to following page:

 

(Visited 8 times, 1 visits today)

Leave a Reply