Redirect HTTP to HTTPS automatically

You can Redirect HTTP to HTTPS automatically by editing your .htaccess file in your FILE MANAGER inside your cPanel.

WARNING!!! If you use WORDPRESS or other CMS or Software - you may need to make the https changes inside your administration area of that software!


Add the following to your .htaccess file

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

Your .htaccess file belongs inside your public_html folder
and it is a "HIDDEN FILE" (starts with a .) AND sometimes your ftp/file manager "SETTINGS" will be set to NOT SHOW HIDDEN FILES...
SO, you MAY need to edit your FTP program to show Hidden Files... IN cPanel FILE MANAGER, click on "Settings" BUTTON in UPPER RIGHT HAND CORNER and SELECT "show hidden files".

As always - let us know if you have any questions :)

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

How do I view my site in SSL?

To view your site in SSL - you will want to add https:// to the beginning of your website domain...

I now have SSL, but I just googled my website, clicked the link and it goes to the NOT SECURE page, HELP?

Don't worry, there is an easy fix to that!You can REDIRECT ALL http traffic to your https (SECURE...

Help - my site isn't running in https (SSL) mode!

Don't worry, there is an easy fix to that!You can REDIRECT ALL http traffic to your https (SECURE...

Help - my website page isn't showing the GREEN SECURE message!

If you have SSL Service, and are trying to view a webpage securely via https, for example:...