Ask or search…
Comment on page

SSL Force

Force website to https
Make sure you have deployed the product before perfuming this solution
Edit the file on your root public folder .htaccess and replace the below code.
This will force your website to load over https only
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Last modified 3mo ago