Articles on: Maintenance

Force Clientexec to use the https protocol

You can force a redirect from http to https using mod_rewrite:

Place the following in a .htaccess file:

RewriteEngine On 
RewriteCond %{HTTPS} !=on 
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Please, note that the .htaccess should be located in the web site main folder.

The .htaccess file should be placed in the folder where you need to force HTTPS. You will also need mod_rewrite support in apache.

Updated on: 23/02/2023

Was this article helpful?

Share your feedback


Thank you!