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:

Order Allow,Deny Deny from all

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.

Comments

  • 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.
    manuelruizp84
Sign In or Register to comment.