Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Using https

21 Jan 2017, 11:01

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!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Using https

21 Jan 2017, 11:43

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.
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Re: Using https

22 Jan 2017, 10:54

Thanks Karl!
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 308
Joined: 01 Mar 2011, 11:13

Re: Using https

23 Jan 2017, 05:41

Just to let you know that I've done it and worked perfectly. Thanks again!