Force SSL?

Hello there,

I wanted to force SSL in our Gibbon installation. I decided to do it via the main .htaccess file. This is the original .htaccess file:

<FilesMatch "\\.(htaccess|htpasswd|ini|log|sh|inc|bak|sql|neon|DS_Store)$"> Order Allow,Deny Deny from all </FilesMatch>

Now below I these added these lines:

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Now it’s working fine and it’s forcing the browser to use the SSL port.

Well, this editor is not allowing me to copy code: here it’s the picture of my current .htaccess file:

Hi Manuel, that looks like it should work. Be sure to check your Gibbon installation and ensure in System Admin > System Settings that the Base URL also has https in the url.