Redirect HTTP to HTTPS automatically

If you have a secure socket layer certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your site for a secure connection.

FastCloud hosting is Linux-based. Linux use .htaccess files to handle redirection.

You may need to create a .htaccess file, and you can use your control panel's File Manager.

Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site:

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

If you have an existing .htaccess file:

  • Do not duplicate RewriteEngine On.
  • Make sure the lines beginning RewriteCond and RewriteRule immediately follow the already existing RewriteEngine On.

This will automatically redirect your bare domain to the secure HTTPS version.

Note: Custom site code can cause issues with the above method, which can be out of our scope of support.

If the above steps are out of your technical knowledge or ability, we recommend contacting a website developer (outside of us) to assist. 

Was this answer helpful?

 Print this Article

Also Read

PHP ვერსიები

ნებისმიერ Cpanel-ის თუ DairectAdmin-ის მომხმარებელს შეუძლია მარტივი ხერხით შეარჩიოს და შეცვალოს...

ვებ ძრავების ინსტალაცია

ნებისმიერ Cpanel-ის მომხმარებელს, შეუძლია მარტივი ხერხით შეარჩიოს დააინსტალიროს მისთვის ძრავი ვებ...

როგორ ავტვირთოთ საიტი?

იმს შემდეგ რაც სასურველ ჰოსტინგ პროვაიდერს შეარჩევთ და მათთან დაიწყებთ თანამშრომლობას, თქვენი...

სარეზერვო ასლების შექმნა (Backup) Cpanel-ზე

ჰოსტინგ პროვაიდერში, კლიენტის მიერ განთავსებულ ვებ გვერდის კონტეტნტის რეზერვაციაზე გარკვეული...

Mailing List-ების შექმნა Cpanel-ის ანგარიშიდან.

Cpanel-ის მომხხმარებლებს რომელთაც სურვილი აქვთ შექმნან Mailing List-ი (მეილი რომლის ქვეშაც...