Page 1 of 1

Using https

Posted: 21 Jan 2017, 11:01
by andreamarucci
Hello Karl, my gallery now use http but I'd like to use https. I'm using a CDN that support https but I'd like to know what I've to do in the panel to enable SSL and make the gallery use it, maybe forcing it also using htaccess.

Thanks!

Re: Using https

Posted: 21 Jan 2017, 11:43
by mjau-mjau
Good idea!

X3 doesn't require any settings for SSL, and is already fully compatible with SSL. As you can see, your X3 website already works fine under SSL: https://gallery.kog.it/.
Image

All you should do really, is force SSL by redirecting all non-SSL traffic. I believe you can add this to .htaccess:
Code
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://gallery.kog.it//$1 [R=301,L]
After adding the above, you should log in to X3 panel, click SAVE in settings (without changing anything). This makes sure cached pages are purged, and new pages will be created from SSL. Although your current website already "works" under SSL, several META tags link to non-SSL ... When you refresh your website from SSL, X3 will create links relative to https protocol.

Although not strictly necessary, you should also change custom links that go to http://gallery.kog.it, to avoid redirects.

Re: Using https

Posted: 22 Jan 2017, 10:54
by andreamarucci
Thanks Karl!

Re: Using https

Posted: 23 Jan 2017, 05:41
by andreamarucci
Just to let you know that I've done it and worked perfectly. Thanks again!