Articles on: Maintenance

Rewrite rule to redirect CE URL to https://

You can use a .htaccess url rewrite to force the access via https or you could edit your login.tpl to hard code the https:// into the form action.

You need to add the code mentioned below in your .htaccess file

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

Updated on: 23/02/2023

Was this article helpful?

Share your feedback


Thank you!