Force HTTPS

To enable force https into your script your SSL must be configured properly. after that you can go to

Admin / Help and Support / Remove public and force https and click on Force https and then try to run your site on https://

If this not work then you can create .htaccess file on root and put the following code in it.

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{HTTPS} !=on
	RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 
	RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Last updated