I want to force my website to be opened via HTTPS

How can I force my website to be accessed via https?

Add Comment
1 Answer(s)
Best answer

In order to force a usage of secure connection (SSL – https://) for your website, you will need to place the following rule in your website root directory .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule .* https://yourdomain.com/%{REQUEST_URI} [R,L]

Or:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https:///yourdomain.com/$1 [R,L]

Keep in mind that you will need to replace “yourdomain.com” with the actual domain name for your website.

In case you are experiencing any issues with adding the code above to your .htaccess file or it is not working properly, please open a support ticket from your Client Area and our Technical Support Team will be glad to assist you with this further.

Gregory Specter Answered on September 26, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.